mcpiapi
mcpiapi copied to clipboard
Search path?
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
Great - thanks for the heads-up! I'll test on a windows machine and borrow your technique.