mcpiapi icon indicating copy to clipboard operation
mcpiapi copied to clipboard

Search path?

Open arpruss opened this issue 10 years ago • 1 comments

This is based on the code rather than actually trying your mod, but it doesn't look to me like you search the system path for the python executable. On my Windows system, ProcessBuilder when given a list of arguments (as your code looks to me to do) just directly executes the binary, without invoking a shell or searching the path, and so you can expect it to fail unless python.exe is in the current directory.

In my Raspberry Jam Mod, to which I just added a python command inspired by yours, I search for the script processor in ScriptExternalCommand.getScriptProcessorPath(): https://github.com/arpruss/raspberryjammod/blob/master/src/main/java/mobi/omegacentauri/raspberryjammod/ScriptExternalCommand.java

arpruss avatar Jan 21 '15 14:01 arpruss

Great - thanks for the heads-up! I'll test on a windows machine and borrow your technique.

kbsriram avatar Jan 21 '15 15:01 kbsriram