From 664c1c3189cd441ed7486d85504a4ebb58023cc9 Mon Sep 17 00:00:00 2001 From: Thomas Klaehn Date: Tue, 6 Apr 2021 07:50:18 +0200 Subject: [PATCH] config: Move config file --- greenhouse/app.py | 2 +- greenhouse.json => greenhouse/config/greenhouse.json | 0 setup.py | 2 +- 3 files changed, 2 insertions(+), 2 deletions(-) rename greenhouse.json => greenhouse/config/greenhouse.json (100%) diff --git a/greenhouse/app.py b/greenhouse/app.py index 91dafd0..dd1196d 100644 --- a/greenhouse/app.py +++ b/greenhouse/app.py @@ -18,7 +18,7 @@ heat_pin = 26 heat_state = False -CONFIG_FILE = "/etc/greenhouse/greenhouse.json" +CONFIG_FILE = "config/greenhouse.json" GPIO.setwarnings(False) GPIO.setmode(GPIO.BCM) diff --git a/greenhouse.json b/greenhouse/config/greenhouse.json similarity index 100% rename from greenhouse.json rename to greenhouse/config/greenhouse.json diff --git a/setup.py b/setup.py index b9fe8b9..a0801a9 100755 --- a/setup.py +++ b/setup.py @@ -11,7 +11,7 @@ PACKAGES = ['greenhouse'] REQUIRES = ['Flask', 'w1thermsensor', 'RPi.GPIO'] CONFIG_FOLDER = '/etc/greenhouse' CONFIG_FILE = 'greenhouse.json' -PACKAGE_DATA = {'greenhouse': ['templates/*', 'static/css/*', 'static/scripts/*']} +PACKAGE_DATA = {'greenhouse': ['templates/*', 'static/css/*', 'static/scripts/*', 'config/*']} setup(name=NAME, version=VERSION, long_description=__doc__, author=AUTHOR, author_email=EMAIL, packages=PACKAGES, include_package_data=True, package_data=PACKAGE_DATA, zip_safe=False,