Commit 1569d2e2 authored by Jason R. Coombs's avatar Jason R. Coombs

Found a public API method which is preferable to using the private attribute...

Found a public API method which is preferable to using the private attribute for ascertaining the location of the gen_py cache

--HG--
branch : distribute
extra : rebase_source : 6feed4430505ad2d2680b141d41dccb95d9e80af
parent 50900e7b
......@@ -158,14 +158,12 @@ else:
_EXCEPTIONS = []
try:
import win32com
_EXCEPTIONS.append(win32com.__gen_path__)
from win32com.client.gencache import GetGeneratePath
_EXCEPTIONS.append(GetGeneratePath())
del GetGeneratePath
except ImportError:
# it appears pywin32 is not installed, so no need to exclude.
pass
except AttributeError:
# it appears __gen_path__ is not available, so fail silently
pass
class DirectorySandbox(AbstractSandbox):
"""Restrict operations to a single subdirectory - pseudo-chroot"""
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment