mirror of
https://github.com/bckelley/tconnectsync.git
synced 2026-08-24 03:34:12 -05:00
refactor: fix secret imports, move to pkg folder
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user