Skip to content

Commit bab2220

Browse files
author
Jürgen Hermann
committed
Fix for scripts running under CMD.EXE
1 parent 5e9342e commit bab2220

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

setup.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
# BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE,
1717
# SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
1818
#
19-
# $Id: setup.py,v 1.31 2002-03-22 18:36:00 jhermann Exp $
19+
# $Id: setup.py,v 1.32 2002-03-27 23:47:58 jhermann Exp $
2020

2121
from distutils.core import setup, Extension
2222
from distutils.util import get_platform
@@ -85,7 +85,8 @@ def copy_scripts(self):
8585
try:
8686
if sys.platform == "win32":
8787
file.write('@echo off\n'
88-
'%(python)s -c "from %(package)s.scripts.%(module)s import run; run()" %%$\n'
88+
'if NOT "%%_4ver%%" == "" %(python)s -c "from %(package)s.scripts.%(module)s import run; run()" %%$\n'
89+
'if "%%_4ver%%" == "" %(python)s -c "from %(package)s.scripts.%(module)s import run; run()" %%*\n'
8990
% script_vars)
9091
else:
9192
file.write('#! %(python)s\n'
@@ -172,6 +173,9 @@ def isTemplateDir(dir):
172173

173174
#
174175
# $Log: not supported by cvs2svn $
176+
# Revision 1.31 2002/03/22 18:36:00 jhermann
177+
# chmod +x for scripts
178+
#
175179
# Revision 1.30 2002/01/29 20:07:15 jhermann
176180
# Conversion to generated script stubs
177181
#

0 commit comments

Comments
 (0)