From 17ed0055a3f21428046e2760d60c1c79284d8dcd Mon Sep 17 00:00:00 2001 From: doubledave <david@boxxy.info> Date: Tue, 24 Dec 2019 06:04:31 -0600 Subject: [PATCH] Fix imports --- scripts/py/Forecast.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/scripts/py/Forecast.py b/scripts/py/Forecast.py index a3fa4d2..182ea61 100644 --- a/scripts/py/Forecast.py +++ b/scripts/py/Forecast.py @@ -2,7 +2,9 @@ import PySimpleGUI as sg import os.path as path -from scripts.py.application import logger +import sys +sys.path.append(path.abspath('.')) +from scripts.py.application.logger import setup_logger from scripts.py.forecast.IPtoGP import getByIP from scripts.py.forecast.weather import check_key from scripts.py.forecast.weather import getWeather @@ -10,7 +12,7 @@ from scripts.py.forecast.weather import getIcon name = 'Forecast' -log = logger.setup_logger(name) +log = setup_logger(name) log.info('The logger is awake') from scripts.py.application import itsmConfig as config -- GitLab