diff options
author | mathieui <mathieui@mathieui.net> | 2011-11-16 09:46:09 +0100 |
---|---|---|
committer | mathieui <mathieui@mathieui.net> | 2011-11-16 09:46:09 +0100 |
commit | 75f7d710801388b2f62deb98968ff8d4d1f0d350 (patch) | |
tree | 50c6828ba8a61ca8ba6c0459d8ad0f5a09b58e5a /src/core.py | |
parent | f40f5cb6c21e69abe6693d7cd22ec934d9177610 (diff) | |
download | poezio-75f7d710801388b2f62deb98968ff8d4d1f0d350.tar.gz poezio-75f7d710801388b2f62deb98968ff8d4d1f0d350.tar.bz2 poezio-75f7d710801388b2f62deb98968ff8d4d1f0d350.tar.xz poezio-75f7d710801388b2f62deb98968ff8d4d1f0d350.zip |
Use os.path.expanduser to interpret '~' for _dir config options
Diffstat (limited to 'src/core.py')
-rw-r--r-- | src/core.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/core.py b/src/core.py index 311c187d..6bfb4c63 100644 --- a/src/core.py +++ b/src/core.py @@ -1340,6 +1340,7 @@ class Core(object): os.path.join(os.environ.get('XDG_DATA_HOME') or\ os.path.join(os.environ.get('HOME'), '.local', 'share'), 'poezio', 'themes') + themes_dir = os.path.expanduser(themes_dir) try: names = os.listdir(themes_dir) except OSError as e: |