[pywin32-checkins] pywin32/com/win32com/test util.py,1.20,1.21
OLD project page for the Python extensions for Windows
Brought to you by:
mhammond
From: Mark H. <mha...@us...> - 2011-02-26 00:24:55
|
Update of /cvsroot/pywin32/pywin32/com/win32com/test In directory vz-cvs-2.sog:/tmp/cvs-serv15501/com/win32com/test Modified Files: util.py Log Message: add a 'loader module' with a manifest and other magic for COM objects Index: util.py =================================================================== RCS file: /cvsroot/pywin32/pywin32/com/win32com/test/util.py,v retrieving revision 1.20 retrieving revision 1.21 diff -C2 -d -r1.20 -r1.21 *** util.py 5 Feb 2009 06:58:11 -0000 1.20 --- util.py 26 Feb 2011 00:24:53 -0000 1.21 *************** *** 51,55 **** # no CLSID or InProcServer32 - not good! break ! if os.path.basename(dll) != os.path.basename(pythoncom.__file__): why_not = "%r is registered against a different Python version (%s)" % (progid, dll) break --- 51,57 ---- # no CLSID or InProcServer32 - not good! break ! ok_files = [os.path.basename(pythoncom.__file__), ! 'pythoncomloader%d%d.dll' % (sys.version_info[0], sys.version_info[1])] ! if os.path.basename(dll) not in ok_files: why_not = "%r is registered against a different Python version (%s)" % (progid, dll) break |