X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/1e4a197e4c60e461b8068b0619692ea083e30b8b..9d3734c8997cf1eb5e04bf3ae930f8f191b09705:/wxPython/distutils/command/build_scripts.py diff --git a/wxPython/distutils/command/build_scripts.py b/wxPython/distutils/command/build_scripts.py index f61ad37d03..8de9cd3f6d 100644 --- a/wxPython/distutils/command/build_scripts.py +++ b/wxPython/distutils/command/build_scripts.py @@ -15,7 +15,7 @@ from distutils.util import convert_path from distutils import log # check if Python is called on the first line with this expression -first_line_re = re.compile(r'^#!.*python[0-9.]*(\s+.*)?$') +first_line_re = re.compile('^#!.*python[0-9.]*([ \t].*)?$') class build_scripts (Command): @@ -96,7 +96,7 @@ class build_scripts (Command): (os.path.normpath(sys.executable), post_interp)) else: - outf.write("#!%s%s" % + outf.write("#!%s%s\n" % (os.path.join( sysconfig.get_config_var("BINDIR"), "python" + sysconfig.get_config_var("EXE")),