diff options
author | mathieui <mathieui@mathieui.net> | 2014-04-24 21:25:31 +0200 |
---|---|---|
committer | mathieui <mathieui@mathieui.net> | 2014-04-24 21:25:31 +0200 |
commit | 828f60fcb8eccf9cdd2be9d7164b68839161fff7 (patch) | |
tree | f2795f7302dc5bc13d91f1ce9eb314de7ad11edc | |
parent | 5012611bd72bc74cef2a4870b9056df406b5dccb (diff) | |
download | poezio-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
-rw-r--r-- | src/poezio.py | 3 | ||||
-rw-r--r-- | 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() |