-
Notifications
You must be signed in to change notification settings - Fork 5
Open
Description
I have several projects that I want to use trace gl on.
Like so
node tracegl ../ProjectDirectory/main.js
However it was trying to open files relative to tracegl's directory.
I would like to keep tracegl in one spot
Here is the solution.
Find the line for
if(a.match(/.js$/i) || isfile)
and modify it to be like so
if(a.match(/.js$/i) || isfile) {
dir = path.dirname(a);
out('gWorking Directory: ~~ '+dir+'\n');
process.chdir(dir);
return nodeJSMode(f, a, arg.slice(i+1), sender);
}
At the time of writing this was line 278
Metadata
Metadata
Assignees
Labels
No labels