From 451e701e53f95a8a3d36b947b3fefd79054afd0d Mon Sep 17 00:00:00 2001 From: Isaac Shabtay Date: Thu, 16 Nov 2017 03:41:38 -0800 Subject: [PATCH] CFY-7568: handle home directory properly --- .gitignore | 3 +++ agent_packager/packager.py | 1 + 2 files changed, 4 insertions(+) diff --git a/.gitignore b/.gitignore index 2c62ee1..fb44163 100644 --- a/.gitignore +++ b/.gitignore @@ -57,3 +57,6 @@ docs/_build/ *COMMIT_MSG .qbcache/ + +.idea/ + diff --git a/agent_packager/packager.py b/agent_packager/packager.py index c075e11..9d86a15 100644 --- a/agent_packager/packager.py +++ b/agent_packager/packager.py @@ -58,6 +58,7 @@ def _import_config(config_file=DEFAULT_CONFIG_FILE): :param string config_file: path to config file """ + config_file = os.path.expanduser(config_file) lgr.debug('Importing config: {0}...'.format(config_file)) try: with open(config_file, 'r') as c: