]> git.corax.cc Git - toolbox/commit
toolbox.sh: Add the script path to the module search paths
authorMatthias Kruk <m@m10k.eu>
Thu, 22 Dec 2022 05:04:54 +0000 (14:04 +0900)
committerMatthias Kruk <m@m10k.eu>
Thu, 22 Dec 2022 05:04:54 +0000 (14:04 +0900)
commit103062b3b9fab5929ac5fec8d72979c903e82d67
tree8fbc1cfb2157f4c20a6c95c5235d17fb19c4e0ea
parent2d5b5d4fd765a7b3e3bb3f795fd75a226e2676e8
toolbox.sh: Add the script path to the module search paths

Toolbox requires modules to be located either in ~/.toolbox/include
or in /usr/share/toolbox/include. This is somewhat inconvenient when
developing scripts with modules that are not supposed to be shared
with other scripts.

This commit adds the path of the executing script to the module
search path, allowing script-private modules to be placed in a
directory called "include" next to the script.
toolbox.sh