Commit 4a1c0ca1 authored by rswindell's avatar rswindell
Browse files

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

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