mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 09:23:56 +00:00
Merge pull request #12718 from hulu/xdg-fix
xdg_config_dir(): fix os.path.expand [sic] typo, and refactor
This commit is contained in:
commit
cac7abf185
@ -15,6 +15,7 @@ def xdg_config_dir(config_dir=None):
|
|||||||
return xdg_config_directory
|
return xdg_config_directory
|
||||||
else:
|
else:
|
||||||
if config_dir is None:
|
if config_dir is None:
|
||||||
return os.path.expanduser('~/.')
|
config_dir = '~/.'
|
||||||
else:
|
else:
|
||||||
return os.path.expand(os.path.join('~/.', config_dir))
|
config_dir = os.path.join('~/.', config_dir)
|
||||||
|
return os.path.expanduser(config_dir)
|
||||||
|
Loading…
Reference in New Issue
Block a user