summaryrefslogtreecommitdiff
path: root/src/theming.py
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2011-11-16 09:46:09 +0100
committermathieui <mathieui@mathieui.net>2011-11-16 09:46:09 +0100
commit75f7d710801388b2f62deb98968ff8d4d1f0d350 (patch)
tree50c6828ba8a61ca8ba6c0459d8ad0f5a09b58e5a /src/theming.py
parentf40f5cb6c21e69abe6693d7cd22ec934d9177610 (diff)
downloadpoezio-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/theming.py')
-rw-r--r--src/theming.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/theming.py b/src/theming.py
index 0fe45d59..71aa8b72 100644
--- a/src/theming.py
+++ b/src/theming.py
@@ -246,6 +246,7 @@ def reload_theme():
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:
os.makedirs(themes_dir)
except OSError: