diff --git a/classes.py b/classes.py index 990f9b4..ae9392f 100644 --- a/classes.py +++ b/classes.py @@ -13,7 +13,10 @@ from config import Config from jinja2 import Environment, FileSystemLoader # get the scrip directory -if getattr(sys, 'frozen', False): + +if Path(f'themes/{Config.THEME}/templates').exists(): + base_dir = "." +elif getattr(sys, 'frozen', False): # Running fron Pyinstaller-packed binary base_dir = Path(sys._MEIPASS) else: @@ -26,6 +29,7 @@ env = Environment(loader=FileSystemLoader(f"{jinja_env_dir}")) env.globals['header_image'] = f"{base_dir}/themes/{Config.THEME}/static/images/header.jpg" index_template = env.get_template("index.html") content_item_template = env.get_template("content_item.html") +print(env.loader.searchpath) class ContentItem: def render_content(self, categories, target_file = False): diff --git a/logger.py b/logger.py index c413738..a3a59b7 100644 --- a/logger.py +++ b/logger.py @@ -4,7 +4,7 @@ from config import Config # Logging config section LOG_TO = sys.stdout -LOG_LEVEL = logging.DEBUG +LOG_LEVEL = logging.INFO logger = logging.getLogger(Config.APP_NAME) logger.setLevel(LOG_LEVEL) diff --git a/themes/default/static/css/theme.css b/themes/default/static/css/theme.css index b06ec20..ff57c5d 100644 --- a/themes/default/static/css/theme.css +++ b/themes/default/static/css/theme.css @@ -21,7 +21,7 @@ body { font-weight: bold; font-size: 1em; line-height: 2em; - background: rgba(0, 0, 0, 0.85); + background: rgba(0, 0, 0, 0.75); width: 100%; text-decoration: none; }