Merge pull request #12718 from hulu/xdg-fix

xdg_config_dir(): fix os.path.expand [sic] typo, and refactor
This commit is contained in:
Pedro Algarvio 2014-05-13 02:14:09 +01:00
commit cac7abf185

View File

@ -15,6 +15,7 @@ def xdg_config_dir(config_dir=None):
return xdg_config_directory
else:
if config_dir is None:
return os.path.expanduser('~/.')
config_dir = '~/.'
else:
return os.path.expand(os.path.join('~/.', config_dir))
config_dir = os.path.join('~/.', config_dir)
return os.path.expanduser(config_dir)