summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAmjith Ramanujam <amjith.r@gmail.com>2015-06-20 08:44:12 -0700
committerAmjith Ramanujam <amjith.r@gmail.com>2015-06-20 08:44:12 -0700
commit5dc20b248f4e0c5f93b6aa406238920b72733b9b (patch)
tree23b3825c8937e55bb7263cf51e2a7beecd4ac3eb
parent44528026d292737641ce8011b5096ade8f87a9a6 (diff)
Assign a filename to the config obj.
-rw-r--r--pgcli/config.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/pgcli/config.py b/pgcli/config.py
index 36a06c92..6f5ff21a 100644
--- a/pgcli/config.py
+++ b/pgcli/config.py
@@ -6,6 +6,7 @@ def load_config(usr_cfg, def_cfg=None):
cfg = ConfigObj()
cfg.merge(ConfigObj(def_cfg, interpolation=False))
cfg.merge(ConfigObj(expanduser(usr_cfg), interpolation=False))
+ cfg.filename = expanduser(usr_cfg)
return cfg