aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--dotfiles/cli.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/dotfiles/cli.py b/dotfiles/cli.py
index 1ea86bf..19bf234 100644
--- a/dotfiles/cli.py
+++ b/dotfiles/cli.py
@@ -149,7 +149,7 @@ def parse_args():
def parse_config(config_file):
parser = configparser.SafeConfigParser()
- parser.read(os.path.expanduser(config_file))
+ parser.read(config_file)
opts = dict()
@@ -222,7 +222,8 @@ def main():
repo_settings['homedir'] = realpath_expanduser(
cli_opts.homedir or repo_settings['homedir'])
- config_opts = parse_config(cli_opts.config_file or '~/%s' % CONFIG_FILE)
+ config_opts = parse_config(cli_opts.config_file or
+ realpath_expanduser('~/%s' % CONFIG_FILE))
repo_settings['path'] = realpath_expanduser(
cli_opts.repository or