From befce1753d83418bdc061eed95a3ee6d8a1f86c7 Mon Sep 17 00:00:00 2001 From: Jeffrey Phillips Freeman <jeffrey.freeman@syncleus.com> Date: Tue, 27 Sep 2016 04:32:46 -0400 Subject: [PATCH] Changed the config directory list to properly handle posix vs non-posix. --- src/apex/cli.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/apex/cli.py b/src/apex/cli.py index f1f0e59..95828e4 100644 --- a/src/apex/cli.py +++ b/src/apex/cli.py @@ -60,9 +60,12 @@ def find_config(config_paths, verbose): rc_file = '.apexrc' cur_path = os.path.join(os.curdir, config_file) home_path = os.path.join(os.path.expanduser('~'), rc_file) - etc_path = os.path.join('', 'etc', config_file) + etc_path = os.pathsep + os.path.join('etc', config_file) if config_paths is None: - config_paths = [cur_path, home_path, etc_path] + if os.name == 'posix': + config_paths = [cur_path, home_path, etc_path] + else: + config_paths = [cur_path, home_path] elif isinstance(config_paths, str): config_paths = [config_paths] elif not isinstance(config_paths, list): -- GitLab