title: Spaces in path for executable cause errors in ScriptRunner on JSD using Groovy/Java
body: <p>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.</p>
  <p>Within a Scriptrunner Groovy script, I am trying run a separate (python) script using <code>.execute()</code> 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.</p>
  <p>i.e.</p>
  <pre><code>def cmd = &quot;D:/Path/To The File/python_executable&quot;
  def proc = cmd.execute()
  </code></pre>
  <p>And the error is</p>
  <pre><code>java.io.IOException: Cannot run program &quot;D:/Path/To&quot;: CreateProcess error=193, %1 is not a valid Win32 application
  </code></pre>
  <p>This <a href="https://stackoverflow.com/q/743454">question</a> 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.</p>
  <p>Unfortunately I'm stuck with the directory names because of Scriptrunner/JSD. Is there any way I can make this work?</p>