aboutsummaryrefslogtreecommitdiffstats
path: root/setuptools/sandbox.py
diff options
context:
space:
mode:
authorJason R. Coombs <jaraco@jaraco.com>2010-05-15 11:01:24 -1000
committerJason R. Coombs <jaraco@jaraco.com>2010-05-15 11:01:24 -1000
commit50900e7b3129467091d7fb03a716755fcf0b0c52 (patch)
tree2cb6402be83a2c96ac78b709c7e9a982934ee439 /setuptools/sandbox.py
parent1fc291ffa0bdddb8869224a760f3af7ef5a45cf5 (diff)
downloadexternal_python_setuptools-50900e7b3129467091d7fb03a716755fcf0b0c52.tar.gz
external_python_setuptools-50900e7b3129467091d7fb03a716755fcf0b0c52.tar.bz2
external_python_setuptools-50900e7b3129467091d7fb03a716755fcf0b0c52.zip
Updated gen_py exception to use attribute of win32com rather than infer the location of gen_py
--HG-- branch : distribute extra : rebase_source : 55f1f3c23dc20edf9c91ea223fc5762fda22f5b2
Diffstat (limited to 'setuptools/sandbox.py')
-rwxr-xr-xsetuptools/sandbox.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/setuptools/sandbox.py b/setuptools/sandbox.py
index 37fc60af..0d6724d1 100755
--- a/setuptools/sandbox.py
+++ b/setuptools/sandbox.py
@@ -158,14 +158,13 @@ else:
_EXCEPTIONS = []
try:
- win32com_pkg = os.path.dirname(__import__('win32com').__file__)
- gen_py_pkg = os.path.join(win32com_pkg, 'gen_py')
- _EXCEPTIONS.append(gen_py_pkg)
+ import win32com
+ _EXCEPTIONS.append(win32com.__gen_path__)
except ImportError:
# it appears pywin32 is not installed, so no need to exclude.
pass
except AttributeError:
- # unexpected error getting __file__ from win32com
+ # it appears __gen_path__ is not available, so fail silently
pass
class DirectorySandbox(AbstractSandbox):