summaryrefslogtreecommitdiff
path: root/configuration.py
diff options
context:
space:
mode:
authorAlexandre Fayolle <alexandre.fayolle@logilab.fr>2008-10-18 10:47:55 +0200
committerAlexandre Fayolle <alexandre.fayolle@logilab.fr>2008-10-18 10:47:55 +0200
commit255b966ee94bc21c888e8903dfc2d87e5d7a5104 (patch)
treecd0cd573b4c7160b03dd77aa3419a063fac29bfd /configuration.py
parentd79d1b8ceebe87d76c4226167b06f3d4dee90656 (diff)
downloadlogilab-common-255b966ee94bc21c888e8903dfc2d87e5d7a5104.tar.gz
let expanduser decide if there is something worth expanding
Diffstat (limited to 'configuration.py')
-rw-r--r--configuration.py3
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: