diff --git a/src/apex/cli.py b/src/apex/cli.py index f1f0e59c6b5d4718d59aa7e3e8add362aecdde79..95828e46cb531dd50885efe121ef162e90522193 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):