From: <th...@us...> - 2013-01-11 21:25:58
|
Revision: 705 http://py2exe.svn.sourceforge.net/py2exe/?rev=705&view=rev Author: theller Date: 2013-01-11 21:25:50 +0000 (Fri, 11 Jan 2013) Log Message: ----------- Fix wrong code. Modified Paths: -------------- trunk/py3exe/py3exe/mf.py Modified: trunk/py3exe/py3exe/mf.py =================================================================== --- trunk/py3exe/py3exe/mf.py 2013-01-11 20:17:22 UTC (rev 704) +++ trunk/py3exe/py3exe/mf.py 2013-01-11 21:25:50 UTC (rev 705) @@ -114,16 +114,17 @@ if reason == _wapi.BindImportModule: dllname = dllname.decode("mbcs").lower() dependends.add(dllname) - ## if imagename.lower().endswith("python%d%d.dll" % sys.version_info[:2]): - ## # This image binds to the pythondll, canot be a systemdll - ## print("***PYDLL", imagename, dllname) + ## print(imagename, "needs", dllname) + if dllname.lower().endswith("python%d%d.dll" % sys.version_info[:2]): + # This image binds to the pythondll + print("***PYDLL", imagename) elif reason == _wapi.BindImportProcedure: dllname = dllname.decode("mbcs").lower() procname = _wapi.STRING(parameter).value.decode("mbcs") imagename = imagename.decode("mbcs").lower() - ## if procname == "PyImport_ImportModule": - ## # This image imports other modules, needs a hint - ## print("***NEED HINT", imagename, procname) + if procname == "PyImport_ImportModule": + # This image imports other modules, needs a hint + print("***NEED HINT", imagename, procname) return True self._bound_images.add(pathname.lower()) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |