]> git.corax.cc Git - toolbox/commit
toolbox: Allow modules to be included from TOOLBOX_HOME user-includes
authorMatthias Kruk <m@m10k.eu>
Sat, 3 Apr 2021 05:42:42 +0000 (14:42 +0900)
committerMatthias Kruk <m@m10k.eu>
Sat, 3 Apr 2021 05:42:42 +0000 (14:42 +0900)
commit39d7695ef7242f583437d91c75a5e9b341f376ee
tree4b4150a07fea6a6bda874721d7b5ac8170fed99f
parent9109f2b486f6d2a995e979df88661ce28fb87a52
toolbox: Allow modules to be included from TOOLBOX_HOME

The current implementation requires that modules be located in the
global module search path, TOOLBOX_PATH/include. This commit modifies
the implementation so that modules may be included from the user's
TOOLBOX_HOME in addition to the global search path:
When include() is invoked, it will attempt to include the module from
the TOOLBOX_HOME/include first, and only if it didn't succeed, it will
attempt to load the module from TOOLBOX_PATH/include.
toolbox.sh