diff --git a/main.py b/main.py index a537546..460d1f9 100644 --- a/main.py +++ b/main.py @@ -14,7 +14,7 @@ from tconnectsync.api.common import ApiException from tconnectsync.process import process_time_range try: - from secret import ( + from tconnectsync.secret import ( TCONNECT_EMAIL, TCONNECT_PASSWORD, PUMP_SERIAL_NUMBER, diff --git a/tconnectsync/nightscout.py b/tconnectsync/nightscout.py index 2b059e0..a730568 100644 --- a/tconnectsync/nightscout.py +++ b/tconnectsync/nightscout.py @@ -5,7 +5,7 @@ import time import urllib.parse try: - from secret import NS_URL, NS_SECRET, TIMEZONE_NAME + from .secret import NS_URL, NS_SECRET, TIMEZONE_NAME except Exception: print('Unable to import Nightscout secrets from secret.py') sys.exit(1) diff --git a/tconnectsync/parser.py b/tconnectsync/parser.py index d1170b1..c812bd6 100644 --- a/tconnectsync/parser.py +++ b/tconnectsync/parser.py @@ -2,7 +2,7 @@ import sys import arrow try: - from secret import TIMEZONE_NAME + from .secret import TIMEZONE_NAME except Exception: print('Unable to import parser secrets from secret.py') sys.exit(1) diff --git a/secret.py b/tconnectsync/secret.py similarity index 100% rename from secret.py rename to tconnectsync/secret.py