diff options
-rwxr-xr-x | setuptools/sandbox.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/setuptools/sandbox.py b/setuptools/sandbox.py index f124289a..dbc24ede 100755 --- a/setuptools/sandbox.py +++ b/setuptools/sandbox.py @@ -150,7 +150,7 @@ class DirectorySandbox(AbstractSandbox): ]) def __init__(self,sandbox): - self._sandbox = os.path.realpath(sandbox) + self._sandbox = os.path.normcase(os.path.realpath(sandbox)) self._prefix = os.path.join(self._sandbox,'') AbstractSandbox.__init__(self) @@ -169,7 +169,7 @@ class DirectorySandbox(AbstractSandbox): active = self._active try: self._active = False - realpath = os.path.realpath(path) + realpath = os.path.normcase(os.path.realpath(path)) if realpath==self._sandbox or realpath.startswith(self._prefix): return True finally: |