To better support shared configurations, it would be useful to access the scope configuration directory from within a check or fix command. This would allow for the loading of shared scripts that implement standard library type functionality.
For example, in an application's .scope/bin/some-fix.sh:
Problem
To better support shared configurations, it would be useful to access the scope configuration directory from within a check or fix command. This would allow for the loading of shared scripts that implement standard library type functionality.
For example, in an application's
.scope/bin/some-fix.sh
:Solution
Use
std::env::current_exe()
to make the bin directory available asSCOPE_BIN_DIR
.TODO