Update of /cvsroot/jython/jython/Lib
In directory usw-pr-cvs1:/tmp/cvs-serv6706
Modified Files:
javapath.py
Log Message:
Replace forward slashes with os.sep when running on backward slash OS
(like windows).
Index: javapath.py
===================================================================
RCS file: /cvsroot/jython/jython/Lib/javapath.py,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -d -r1.5 -r1.6
*** javapath.py 2000/01/12 04:05:13 1.5
--- javapath.py 2001/07/24 20:11:16 1.6
***************
*** 187,190 ****
--- 187,192 ----
"""Normalize path, eliminating double slashes, etc."""
sep = os.sep
+ if sep == '\\':
+ path = path.replace("/", sep)
curdir = os.curdir
pardir = os.pardir
|