Commit 8711abcb authored by Jason R. Coombs's avatar Jason R. Coombs

Also use command_spec_class in ScriptWriter.

parent 246a5982
......@@ -2004,7 +2004,7 @@ class ScriptWriter(object):
warnings.warn("Use get_header", DeprecationWarning)
if wininst:
executable = "python.exe"
cmd = CommandSpec.from_param(executable)
cmd = cls.command_spec_class.from_param(executable)
cmd.install_options(script_text)
return cmd.as_header()
......@@ -2045,7 +2045,7 @@ class ScriptWriter(object):
@classmethod
def get_header(cls, script_text="", executable=None):
"""Create a #! line, getting options (if any) from script_text"""
cmd = CommandSpec.from_param(executable)
cmd = cls.command_spec_class.from_param(executable)
cmd.install_options(script_text)
return cmd.as_header()
......
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