kuuko pushed a commit to annotated tag v0.7.0. http://git.enlightenment.org/apps/epour.git/commit/?id=09c15bfd7a027dfec8e7de91a72ae24b9223c021
commit 09c15bfd7a027dfec8e7de91a72ae24b9223c021 Author: Kai Huuhko <kai.huu...@gmail.com> Date: Mon May 8 01:03:20 2017 +0300 Add local fallback for theme file Useful for development --- epour/gui/__init__.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/epour/gui/__init__.py b/epour/gui/__init__.py index 057c2af..bc4b87a 100644 --- a/epour/gui/__init__.py +++ b/epour/gui/__init__.py @@ -20,6 +20,7 @@ # import os +import sys import cgi import logging from datetime import timedelta, datetime @@ -75,6 +76,15 @@ for data_path in load_data_paths("epour"): theme_file = os.path.join(data_path, "themes", "default.edj") break +if not theme_file: + dir_path = os.getcwd() + path = os.path.join(dir_path, "data", "themes", "default.edj") + + if os.path.exists(path): + theme_file = path + else: + sys.exit("Theme file not found, will not progress without it. Compile the theme with setup.py build_edc") + class MainInterface(object): --