Update of /cvsroot/pywin32/pywin32
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv17659
Modified Files:
pywin32_postinstall.py
Log Message:
import win32com.client, so the gen_py directory is created at install time.
Index: pywin32_postinstall.py
===================================================================
RCS file: /cvsroot/pywin32/pywin32/pywin32_postinstall.py,v
retrieving revision 1.17
retrieving revision 1.18
diff -C2 -d -r1.17 -r1.18
*** pywin32_postinstall.py 10 Oct 2004 22:15:16 -0000 1.17
--- pywin32_postinstall.py 13 Feb 2005 12:28:29 -0000 1.18
***************
*** 308,311 ****
--- 308,318 ----
print "*" * 50
+ # importing win32com.client ensures the gen_py dir created - not strictly
+ # necessary to do now, but this makes the installation "complete"
+ try:
+ import win32com.client
+ except ImportError:
+ # Don't let this error sound fatal
+ pass
print "The pywin32 extensions were successfully installed."
|