Adding BUNDLE/lib/bin to PATH
Issue #4
closed
We had an idea, that BUNDLE/lib/bin should be added to the PATH environment to find external tools.
What about, if we detected there was BUNDLE/lib/rc file, and sourced that for each bundle? That file could then define whatever paths and environments the bundle might need.. even set up something like MY_BUNDLE_PATH=$( dirname $BASH_SOURCE ) and the like.. of course hoping this step wont be too heavy..
I already found external software, which just doesnt work by making a symlink in .../bin/... because it expects all the resource files to be present in the same folder..
Comments (4)
-
reporter -
reporter lib/rc implemented in changeset ec4b96c25583
-
Good and general solution. I tested it and it works.
-
- changed status to closed
- Log in to comment
Continuing.. especially, since many tools tend to have ~10 - 15 binaries in their installation folder, not just one.. might be easier to add the whole lib/specific_tool/bin in path instead of making symlinks for all files found in the folder...
or, for example adding stuff to PYTHON_PATH variable!