summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2014-04-24 21:25:31 +0200
committermathieui <mathieui@mathieui.net>2014-04-24 21:25:31 +0200
commit828f60fcb8eccf9cdd2be9d7164b68839161fff7 (patch)
treef2795f7302dc5bc13d91f1ce9eb314de7ad11edc /src
parent5012611bd72bc74cef2a4870b9056df406b5dccb (diff)
downloadpoezio-828f60fcb8eccf9cdd2be9d7164b68839161fff7.tar.gz
poezio-828f60fcb8eccf9cdd2be9d7164b68839161fff7.tar.bz2
poezio-828f60fcb8eccf9cdd2be9d7164b68839161fff7.tar.xz
poezio-828f60fcb8eccf9cdd2be9d7164b68839161fff7.zip
Update the themes dir during execution, and not at module level
Diffstat (limited to 'src')
-rw-r--r--src/poezio.py3
-rw-r--r--src/theming.py2
2 files changed, 3 insertions, 2 deletions
diff --git a/src/poezio.py b/src/poezio.py
index f9d27a51..c5c0b33c 100644
--- a/src/poezio.py
+++ b/src/poezio.py
@@ -33,6 +33,9 @@ def main():
from config import options
+ import theming
+ theming.update_themes_dir()
+
import logger
logger.create_logger()
diff --git a/src/theming.py b/src/theming.py
index 31208ad0..9e285378 100644
--- a/src/theming.py
+++ b/src/theming.py
@@ -511,8 +511,6 @@ def reload_theme():
else:
return 'No theme present in the theme file'
-update_themes_dir()
-
if __name__ == '__main__':
# Display some nice text with nice colors
s = curses.initscr()