Advertisement
rfmonk

ospath_normpath.py

Jan 26th, 2014
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.19 KB | None | 0 0
  1. import os.path
  2.  
  3. for path in ['one//two//three',
  4.              'one/ ./two/ ./three',
  5.              'one/ ../alt/two/three',
  6.              ]:
  7.     print '%20s : %s' % (path, os.path.normpath(path))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement