[CMF-checkins] CVS: CMF/CMFCore - utils.py:1.35
Chris Withers
chrisw@nipltd.com
Tue, 21 Jan 2003 12:36:48 -0500
Update of /cvs-repository/CMF/CMFCore
In directory cvs.zope.org:/tmp/cvs-serv3278/CMFCore
Modified Files:
utils.py
Log Message:
Put back accidentally needed aid for normpath on Unix.
=== CMF/CMFCore/utils.py 1.34 => 1.35 ===
--- CMF/CMFCore/utils.py:1.34 Tue Jan 21 11:59:40 2003
+++ CMF/CMFCore/utils.py Tue Jan 21 12:36:46 2003
@@ -595,7 +595,9 @@
#
security.declarePublic('normalize')
def normalize(p):
- return os_path.normcase(os_path.normpath(p))
+ # the weird .replace is needed to help normpath
+ # when deadling with Windows paths under *nix
+ return os_path.normcase(os_path.normpath(p.replace('\\','/')))
separators = (os.sep, os.altsep)