shosei

absolute path relative to current file

Mar 11th, 2012
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.09 KB | None | 0 0
  1. import os
  2. def rel(*x):
  3.   return os.path.normcase(os.path.join(os.path.dirname(__file__), *x))
Advertisement
Add Comment
Please, Sign In to add comment