changeset 13619:fd09c3aeae20

setup: remove unnecessary code for win32com (pywin32)
author Steve Borho <steve@borho.org>
date Sun, 13 Mar 2011 08:50:06 -0500
parents b217619a6cf5
children 0e217d479c16
files setup.py
diffstat 1 files changed, 0 insertions(+), 16 deletions(-) [+]
line wrap: on
line diff
--- a/setup.py	Sun Mar 13 15:10:01 2011 +0100
+++ b/setup.py	Sun Mar 13 08:50:06 2011 -0500
@@ -98,24 +98,8 @@
 try:
     import py2exe
     py2exeloaded = True
-
-    # Help py2exe to find win32com.shell
-    try:
-        import modulefinder
-        import win32com
-        for p in win32com.__path__[1:]: # Take the path to win32comext
-            modulefinder.AddPackagePath("win32com", p)
-        pn = "win32com.shell"
-        __import__(pn)
-        m = sys.modules[pn]
-        for p in m.__path__[1:]:
-            modulefinder.AddPackagePath(pn, p)
-    except ImportError:
-        pass
-
 except ImportError:
     py2exeloaded = False
-    pass
 
 def runcmd(cmd, env):
     p = subprocess.Popen(cmd, stdout=subprocess.PIPE,