Skip to content

Search path? #2

@arpruss

Description

@arpruss

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions