diff options
author | Jason R. Coombs <jaraco@jaraco.com> | 2015-01-18 19:55:09 -0500 |
---|---|---|
committer | Jason R. Coombs <jaraco@jaraco.com> | 2015-01-18 19:55:09 -0500 |
commit | 97f96e8cd4d1938095101f26a28f17d6a3f97435 (patch) | |
tree | 17f1499d8ce451fbe6e38824d19b6a1d8f74b209 /setuptools/command/install_scripts.py | |
parent | 0a0f7d5816fa7e42fd787d4923265adc965e1360 (diff) | |
download | python-setuptools-git-97f96e8cd4d1938095101f26a28f17d6a3f97435.tar.gz |
Extract writer resolution as a variable
Diffstat (limited to 'setuptools/command/install_scripts.py')
-rwxr-xr-x | setuptools/command/install_scripts.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/setuptools/command/install_scripts.py b/setuptools/command/install_scripts.py index af079fbb..8d251ee7 100755 --- a/setuptools/command/install_scripts.py +++ b/setuptools/command/install_scripts.py @@ -37,8 +37,10 @@ class install_scripts(orig.install_scripts): if is_wininst: exec_param = "python.exe" writer = ei.WindowsScriptWriter + # resolve the writer to the environment + writer = writer.best() cmd = ei.CommandSpec.from_param(exec_param) - for args in writer.best().get_args(dist, cmd.as_header()): + for args in writer.get_args(dist, cmd.as_header()): self.write_script(*args) def write_script(self, script_name, contents, mode="t", *ignored): |