From: <th...@us...> - 2003-12-29 10:37:38
|
Update of /cvsroot/py2exe/py2exe/sandbox/py2exe In directory sc8-pr-cvs1:/tmp/cvs-serv25520 Modified Files: build_exe.py Log Message: Copy the w9xpopen.exe helper if the os or popen2 are included. This will nearly always be the case, but w9xpopen.exe is only 16 kB, and will not do any harm. Index: build_exe.py =================================================================== RCS file: /cvsroot/py2exe/py2exe/sandbox/py2exe/build_exe.py,v retrieving revision 1.48 retrieving revision 1.49 diff -C2 -d -r1.48 -r1.49 *** build_exe.py 29 Dec 2003 10:20:22 -0000 1.48 --- build_exe.py 29 Dec 2003 10:37:28 -0000 1.49 *************** *** 642,645 **** --- 642,648 ---- import pywintypes dlls.add(pywintypes.__file__) + # Using popen requires (on Win9X) the w9xpopen.exe helper executable. + if "os" in modules.keys() or "popen2" in modules.keys(): + dlls.add(os.path.join(os.path.dirname(sys.executable), "w9xpopen.exe")) else: raise DistutilsError, "Platform %s not yet implemented" % sys.platform |