forked from epics_driver_modules/require
add pre-installed modules to SCRIPT_PATH too
This commit is contained in:
@@ -599,7 +599,11 @@ void registerModule(const char* module, const char* version, const char* locatio
|
||||
|
||||
putenvprintf("MODULE=%s", module);
|
||||
putenvprintf("%s_VERSION=%s", module, version);
|
||||
if (location) putenvprintf("%s_DIR=%s", module, m->content+lm+lv);
|
||||
if (location)
|
||||
{
|
||||
putenvprintf("%s_DIR=%s", module, m->content+lm+lv);
|
||||
insertDirIntoPath("SCRIPT_PATH", m->content+lm+lv);
|
||||
}
|
||||
|
||||
/* only do registration register stuff at init */
|
||||
if (interruptAccept) return;
|
||||
@@ -1552,8 +1556,6 @@ loadlib:
|
||||
|
||||
status = 0;
|
||||
|
||||
insertDirIntoPath("SCRIPT_PATH", filename);
|
||||
|
||||
if (requireDebug)
|
||||
printf("require: looking for template directory\n");
|
||||
/* filename = "<dirname>/[dirlen]<module>/<version>/R<epicsRelease>/[releasediroffs]..." */
|
||||
|
||||
Reference in New Issue
Block a user