refactor: fix secret imports, move to pkg folder

This commit is contained in:
James Woglom
2021-03-18 01:04:24 -04:00
parent d00d8e59dd
commit 8c6719c6a6
4 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -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,
+1 -1
View File
@@ -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)
+1 -1
View File
@@ -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)