Update of /cvsroot/pythoncard/PythonCard
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv6612
Modified Files:
util.py
Log Message:
convert backslashes to forward slashes
Index: util.py
===================================================================
RCS file: /cvsroot/pythoncard/PythonCard/util.py,v
retrieving revision 1.31
retrieving revision 1.32
diff -C2 -d -r1.31 -r1.32
*** util.py 24 Aug 2004 19:01:16 -0000 1.31
--- util.py 24 Aug 2004 20:16:46 -0000 1.32
***************
*** 387,390 ****
--- 387,396 ----
p = p + l2
path = os.path.join(*p)
+ # KEA 2004-08-24
+ # this isn't really the right place to get rid of Windows-specific
+ # path stuff, but I don't want to have to stick this code everywhere
+ # I call relativePath, so let's see if this causes a problem
+ # we want all paths to be Unix-like with forward slashes
+ path = path.replace('\\\\', '/').replace('\\', '/')
if path.startswith('../'):
path = path[3:]
|