Address #767 -- makecatalogs and iconimporter called with relative paths to repo (and also ~ expansion)

This commit is contained in:
Greg Neagle
2017-05-04 15:49:31 -07:00
parent 51e58f5648
commit ee9fa49a16

View File

@@ -109,7 +109,8 @@ def get_version():
def path2url(path):
'''Converts a path to a file: url'''
return urlparse.urljoin('file:', urllib.pathname2url(path))
return urlparse.urljoin('file:', urllib.pathname2url(
os.path.abspath(os.path.expanduser(path))))
def print_utf8(text):