avoids running abspath on None

pull/4420/head
Brian Coca 2015-08-26 09:28:23 -04:00
parent a391857013
commit 82603bb2a0
1 changed files with 3 additions and 1 deletions

View File

@ -576,7 +576,9 @@ class Inventory(object):
if dname is None or dname == '' or dname == '.':
cwd = os.getcwd()
dname = cwd
return os.path.abspath(dname)
if dname:
dname = os.path.abspath(dname)
return dname
def src(self):
""" if inventory came from a file, what's the directory and file name? """