[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Sc-devel] bug: nowExecutingPath breaks windows version
Done, svn rev 6944
2008/1/11, James Harkins <jamshark70@xxxxxxxxx>:
> 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
> _______________________________________________
> Sc-devel mailing list
> Sc-devel@xxxxxxxxxxxxxxx
> http://lists.create.ucsb.edu/mailman/listinfo/sc-devel
>
--
http://www.mcld.co.uk