Update of /cvsroot/pywin32/pywin32/win32/Lib
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv23892
Modified Files:
pywintypes.py
Log Message:
Patch from PJE so pywin32 can be installed as a .egg (with some limitations)
Index: pywintypes.py
===================================================================
RCS file: /cvsroot/pywin32/pywin32/win32/Lib/pywintypes.py,v
retrieving revision 1.12
retrieving revision 1.13
diff -C2 -d -r1.12 -r1.13
*** pywintypes.py 21 Oct 2005 02:25:49 -0000 1.12
--- pywintypes.py 11 Mar 2008 04:23:31 -0000 1.13
***************
*** 90,93 ****
--- 90,98 ----
found = os.path.join(sys.prefix, filename)
if found is None:
+ # Not in the Python directory? Maybe we were installed via
+ # easy_install...
+ if os.path.isfile(os.path.join(os.path.dirname(__file__), filename)):
+ found = os.path.join(os.path.dirname(__file__), filename)
+ if found is None:
# give up in disgust.
raise ImportError, \
|