From ee9fa49a16093d0304bfa87dbb3f4e44070a9d23 Mon Sep 17 00:00:00 2001 From: Greg Neagle Date: Thu, 4 May 2017 15:49:31 -0700 Subject: [PATCH] Address #767 -- makecatalogs and iconimporter called with relative paths to repo (and also ~ expansion) --- code/client/munkilib/cliutils.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/code/client/munkilib/cliutils.py b/code/client/munkilib/cliutils.py index 1a69dfcc..a04a5f16 100644 --- a/code/client/munkilib/cliutils.py +++ b/code/client/munkilib/cliutils.py @@ -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):