[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Sc-devel] bug: nowExecutingPath breaks windows version



Could someone please commit this change?

Kernel.sc:

(in Interpreter)
	interpretPrintCmdLine {
		var res, func, code = cmdLine;
		"\n".post;
		preProcessor !? { cmdLine = preProcessor.value(cmdLine, this) };
		func = this.compile(cmdLine);
		thisProcess.nowExecutingPath = Document.current.tryPerform(\path);
		res = func.value;
		thisProcess.nowExecutingPath = nil;
		codeDump.value(code, res, func, this);
		res.postln;
	}
	
Without .tryPerform after Document.current, you can't execute any code
in Windows because Document.current is always empty.

I'm not at my mac and won't have access to it until Tuesday, hence the
plea for assistance :)
hjh


-- 
James Harkins /// dewdrop world
jamshark70@xxxxxxxxxxxxxxxxx
http://www.dewdrop-world.net

"Come said the Muse,
Sing me a song no poet has yet chanted,
Sing me the universal."  -- Whitman