summaryrefslogtreecommitdiffstats
path: root/Tools/freeze/freeze.py
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1999-03-12 22:07:05 (GMT)
committerGuido van Rossum <guido@python.org>1999-03-12 22:07:05 (GMT)
commit7039f50828473a030123d2bc2990532bcac9b5d9 (patch)
tree2689ef83d2ffe6ba76fe7278c36d4d293e984d4c /Tools/freeze/freeze.py
parentbf5a6d2eb4664f6508a74e7890abe6b07504e6b0 (diff)
downloadcpython-7039f50828473a030123d2bc2990532bcac9b5d9.zip
cpython-7039f50828473a030123d2bc2990532bcac9b5d9.tar.gz
cpython-7039f50828473a030123d2bc2990532bcac9b5d9.tar.bz2
Bug submitted by Wayne Knowles, who writes:
Under Windows, python freeze.py -o hello hello.py creates all the correct files in the hello subdirectory, but the Makefile has the directory prefix in it for frozen_extensions.c nmake fails because it tries to locate hello/frozen_extensions.c (His fix adds a call to os.path.basename() in the appropriate place.)
Diffstat (limited to 'Tools/freeze/freeze.py')
-rwxr-xr-xTools/freeze/freeze.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Tools/freeze/freeze.py b/Tools/freeze/freeze.py
index 2911a35..d6ef87e 100755
--- a/Tools/freeze/freeze.py
+++ b/Tools/freeze/freeze.py
@@ -397,7 +397,7 @@ def main():
frozen_extensions)
# Create a module definition for the bootstrap C code.
xtras = [frozenmain_c, os.path.basename(frozen_c),
- frozendllmain_c, extensions_c] + files
+ frozendllmain_c, os.path.basename(extensions_c)] + files
maindefn = checkextensions_win32.CExtension( '__main__', xtras )
frozen_extensions.append( maindefn )
outfp = open(makefile, 'w')