Skip to content
Snippets Groups Projects
Commit 8ca065cc authored by Rob Swindell's avatar Rob Swindell :speech_balloon:
Browse files

Check/read the passed module path/name section in jsexec.ini first

... before the more ambiguous base filename check.

e.g. if you run 'jsexec /path/to/test.js' and get separate set of settings
from running 'jsexec test.js' depending on which sections you have added to
your jsexec.ini file.
parent 0481ad29
Branches
Tags
No related merge requests found
Pipeline #7855 passed
......@@ -1453,9 +1453,12 @@ int main(int argc, char **argv)
module = argv[argn];
#ifndef JSDOOR
char ini_section[MAX_PATH + 1];
SAFECOPY(ini_section, getfname(module));
if ((p = getfext(ini_section)) != NULL)
*p = 0;
SAFECOPY(ini_section, module);
if (!iniSectionExists(ini, ini_section)) {
SAFECOPY(ini_section, getfname(module));
if ((p = getfext(ini_section)) != NULL)
*p = 0;
}
get_ini_values(ini, ini_section, &cb);
#endif
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment