A small function that I typically use instead of os.path.join which, in complex scenarios, can result in non-norm/non-abs paths.
| Python |
1 2 3 | def xjoin(*c):
"""Equivalent to normpath(abspath(join(*c)))"""
return normpath(abspath(join(*c)))
|
A small function that I typically use instead of os.path.join which, in complex scenarios, can result in non-norm/non-abs paths.
| Python |
1 2 3 | def xjoin(*c):
"""Equivalent to normpath(abspath(join(*c)))"""
return normpath(abspath(join(*c)))
|
Sign in to comment