diff --git a/config.py b/config.py index 8edd0c1..ea2365e 100644 --- a/config.py +++ b/config.py @@ -172,5 +172,6 @@ automatic_restart_state_file = os.path.abspath(os.path.join(os.path.dirname( __f # created a repo where anyone can contribute profiles. The objective is # to load profiles from this repository by default. # See https://github.com/jbruce12000/kiln-profiles +#kiln_profiles_directory = os.path.abspath(os.path.join(os.path.dirname( __file__ ),"storage", "profiles")) kiln_profiles_directory = os.path.abspath(os.path.join(os.path.dirname( __file__ ),'..','kiln-profiles','pottery')) diff --git a/kiln-controller.py b/kiln-controller.py index 531aba2..7e9e039 100755 --- a/kiln-controller.py +++ b/kiln-controller.py @@ -28,7 +28,7 @@ log.info("Starting kiln controller") script_dir = os.path.dirname(os.path.realpath(__file__)) sys.path.insert(0, script_dir + '/lib/') -profile_path = os.path.join(script_dir, "storage", "profiles") +profile_path = config.kiln_profiles_directory from oven import SimulatedOven, RealOven, Profile from ovenWatcher import OvenWatcher