diff options
author | Amjith Ramanujam <amjith.r@gmail.com> | 2015-06-20 08:44:12 -0700 |
---|---|---|
committer | Amjith Ramanujam <amjith.r@gmail.com> | 2015-06-20 08:44:12 -0700 |
commit | 5dc20b248f4e0c5f93b6aa406238920b72733b9b (patch) | |
tree | 23b3825c8937e55bb7263cf51e2a7beecd4ac3eb | |
parent | 44528026d292737641ce8011b5096ade8f87a9a6 (diff) |
Assign a filename to the config obj.
-rw-r--r-- | pgcli/config.py | 1 |
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 |