From db81bfdd720fe8a12d3c9b94341ac6a480804707 Mon Sep 17 00:00:00 2001 From: Daniel Williams Date: Thu, 2 Feb 2023 15:34:04 +0000 Subject: [PATCH] Update to allow specification of the theme directory. --- otter/otter.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/otter/otter.py b/otter/otter.py index 7c976ed..258cc28 100755 --- a/otter/otter.py +++ b/otter/otter.py @@ -33,7 +33,6 @@ def __init__(self, filename, theme_location=None, config_file=None, **kwargs): # Attempt to load in default meta data from a config file # At the moment just the current directory, but should # extend to look in home directory and environment variable location too - config = ConfigParser() #if not config_file: try: @@ -53,7 +52,7 @@ def __init__(self, filename, theme_location=None, config_file=None, **kwargs): if theme_location: theme = theme_location - + elif config.has_option("theme", "name"): try: import importlib