diff options
author | PJ Eby <distutils-sig@python.org> | 2005-07-24 02:38:20 +0000 |
---|---|---|
committer | PJ Eby <distutils-sig@python.org> | 2005-07-24 02:38:20 +0000 |
commit | 20851ca9363b0fded18d42c3bd0f2dd2105f5093 (patch) | |
tree | 8515ff3ccabdbda8887b0cffc9fb98f8826979e9 /setuptools/sandbox.py | |
parent | 1b23ba3c222a3e4d09138bf2e252caa171cdc420 (diff) | |
download | external_python_setuptools-20851ca9363b0fded18d42c3bd0f2dd2105f5093.tar.gz external_python_setuptools-20851ca9363b0fded18d42c3bd0f2dd2105f5093.tar.bz2 external_python_setuptools-20851ca9363b0fded18d42c3bd0f2dd2105f5093.zip |
Fixed the setup script sandbox facility not recognizing certain paths as
valid on case-insensitive platforms.
--HG--
branch : setuptools
extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/trunk/setuptools%4041146
Diffstat (limited to 'setuptools/sandbox.py')
-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: |