From 828f60fcb8eccf9cdd2be9d7164b68839161fff7 Mon Sep 17 00:00:00 2001 From: mathieui Date: Thu, 24 Apr 2014 21:25:31 +0200 Subject: Update the themes dir during execution, and not at module level --- src/poezio.py | 3 +++ src/theming.py | 2 -- 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() -- cgit v1.2.3