diff options
author | Alexandre Fayolle <alexandre.fayolle@logilab.fr> | 2008-10-18 10:47:55 +0200 |
---|---|---|
committer | Alexandre Fayolle <alexandre.fayolle@logilab.fr> | 2008-10-18 10:47:55 +0200 |
commit | 255b966ee94bc21c888e8903dfc2d87e5d7a5104 (patch) | |
tree | cd0cd573b4c7160b03dd77aa3419a063fac29bfd /configuration.py | |
parent | d79d1b8ceebe87d76c4226167b06f3d4dee90656 (diff) | |
download | logilab-common-255b966ee94bc21c888e8903dfc2d87e5d7a5104.tar.gz |
let expanduser decide if there is something worth expanding
Diffstat (limited to 'configuration.py')
-rw-r--r-- | configuration.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/configuration.py b/configuration.py index b0c8e2d..ba07270 100644 --- a/configuration.py +++ b/configuration.py @@ -490,8 +490,7 @@ class OptionsManagerMixIn(object): """ if config_file is None: config_file = self.config_file - if '~' in config_file: - config_file = expanduser(config_file) + config_file = expanduser(config_file) if config_file and exists(config_file): self._config_parser.read([config_file]) elif not self.quiet: |