[Python-checkins] python/nondist/sandbox/setuptools/setuptools sandbox.py, 1.4, 1.5
pje@users.sourceforge.net
pje at users.sourceforge.net
Sun Jul 24 04:38:22 CEST 2005
Update of /cvsroot/python/python/nondist/sandbox/setuptools/setuptools
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv7019/setuptools
Modified Files:
sandbox.py
Log Message:
Fixed the setup script sandbox facility not recognizing certain paths as
valid on case-insensitive platforms.
Index: sandbox.py
===================================================================
RCS file: /cvsroot/python/python/nondist/sandbox/setuptools/setuptools/sandbox.py,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- sandbox.py 10 Jul 2005 04:49:31 -0000 1.4
+++ sandbox.py 24 Jul 2005 02:38:20 -0000 1.5
@@ -150,7 +150,7 @@
])
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 @@
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:
More information about the Python-checkins
mailing list