I have many layers of problems that I'm trying to work through, and I've found one potential way around the main problem, but I've run into another in the process.
Within a Scriptrunner Groovy script, I am trying run a separate (python) script using .execute()
on a string that contains the full path. Unfortunately the path contains a space and no matter how I try to escape the space, it truncates the command at the space.
i.e.
def cmd = "D:/Path/To The File/python_executable"
def proc = cmd.execute()
And the error is
java.io.IOException: Cannot run program "D:/Path/To": CreateProcess error=193, %1 is not a valid Win32 application
This question has a similar problem, but it's running java on the command line, which which I don't have access to (as far as I know). Also the top answer suggests command line actions that again I can't do in this setting.
Unfortunately I'm stuck with the directory names because of Scriptrunner/JSD. Is there any way I can make this work?