Commit 31177210 authored by Paweł Szostek's avatar Paweł Szostek

path.py: check for argument being None

parent 24ebf12c
......@@ -140,6 +140,8 @@ def rel2abs(path, base=None):
The base is intelligently concatenated to the given relative path.
@return the relative path of path from base
"""
if base is None:
base = os.getcwd()
if os.path.isabs(path):
return path
retval = os.path.join(base, path)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment