convert path to UNIX path

Convert all backward slashes into forward slashes.

Download tounixpath.zip

Synopsis:

tounixpath.py


tounixpath.py

Synopsis
def toUnixPath(path):
   return path.replace('\\', '/');

#-- unit tests
def test_tounixpath():
   ut.utassert(toUnixPath("c:\\bin\\bob"), "c:/bin/bob");






Contact me about content on this page using john_web-at-arrizza-dot-com
For Web Master or site problems contact: webadmin-at-arrizza-dot-com
Copyright John Arrizza (c) 2001-2010