Advertisement
rfmonk

ospath_join.py

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