Commit da3d5f36 authored by Jason R. Coombs's avatar Jason R. Coombs

Replace redundant code with call of that code.

parent 8c355d7c
...@@ -2088,9 +2088,7 @@ class ScriptWriter: ...@@ -2088,9 +2088,7 @@ class ScriptWriter:
warnings.warn("Use get_header", DeprecationWarning, stacklevel=2) warnings.warn("Use get_header", DeprecationWarning, stacklevel=2)
if wininst: if wininst:
executable = "python.exe" executable = "python.exe"
cmd = cls.command_spec_class.best().from_param(executable) return cls.get_header(script_text, executable)
cmd.install_options(script_text)
return cmd.as_header()
@classmethod @classmethod
def get_args(cls, dist, header=None): def get_args(cls, dist, header=None):
......
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