Commit e5588b70 authored by Stephen Drake's avatar Stephen Drake

Don't quote executable name twice in script headers

Don't quote the executable name in JythonCommandSpec.from_environment() since it is quoted if necessary in CommandSpec._render().

With the executable quoted on initialisation of JythonCommandSpec, the quotes get escaped in the resulting header, eg:

#!/usr/bin/env \"/path/to/jython\"
parent 3c047624
......@@ -1944,15 +1944,6 @@ class JythonCommandSpec(CommandSpec):
__import__('java').lang.System.getProperty('os.name') != 'Linux'
)
@classmethod
def from_environment(cls):
string = '"' + cls._sys_executable() + '"'
return cls.from_string(string)
@classmethod
def from_string(cls, string):
return cls([string])
def as_header(self):
"""
Workaround Jython's sys.executable being a .sh (an invalid
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment