Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 7039f50

Browse files
committed
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.)
1 parent bf5a6d2 commit 7039f50

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Tools/freeze/freeze.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -397,7 +397,7 @@ def main():
397397
frozen_extensions)
398398
# Create a module definition for the bootstrap C code.
399399
xtras = [frozenmain_c, os.path.basename(frozen_c),
400-
frozendllmain_c, extensions_c] + files
400+
frozendllmain_c, os.path.basename(extensions_c)] + files
401401
maindefn = checkextensions_win32.CExtension( '__main__', xtras )
402402
frozen_extensions.append( maindefn )
403403
outfp = open(makefile, 'w')

0 commit comments

Comments
 (0)