Skip to content
Snippets Groups Projects
Commit 4a1c0ca1 authored by rswindell's avatar rswindell
Browse files

Don't add .js extension if full-path to script specified.

parent 02209233
No related branches found
No related tags found
No related merge requests found
......@@ -508,7 +508,7 @@ long js_exec(const char *fname, char** args)
if(scfg.mods_dir[0]==0 || !fexistcase(path))
sprintf(path,"%s%s%s",scfg.exec_dir,fname,js_ext(fname));
} else
sprintf(path,"%s%s",fname,js_ext(fname));
SAFECOPY(path,fname);
if(!fexistcase(path)) {
fprintf(errfp,"!Module file (%s) doesn't exist\n",path);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment