diff --git a/timeloop/__init__.py b/timeloop/__init__.py index e0668e3..8d95c4d 100644 --- a/timeloop/__init__.py +++ b/timeloop/__init__.py @@ -1 +1 @@ -from app import Timeloop +from timeloop.app import Timeloop diff --git a/timeloop/app.py b/timeloop/app.py index 65b2a27..d6808d1 100644 --- a/timeloop/app.py +++ b/timeloop/app.py @@ -1,8 +1,12 @@ -import logging, sys, signal, time +import logging +import sys +import signal +import time + +from timeloop.exceptions import ServiceExit +from timeloop.job import Job +from timeloop.helpers import service_shutdown -from exceptions import ServiceExit -from job import Job -from helpers import service_shutdown class Timeloop(): def __init__(self): diff --git a/timeloop/helpers.py b/timeloop/helpers.py index 4a3cb36..0a1c2fe 100644 --- a/timeloop/helpers.py +++ b/timeloop/helpers.py @@ -1,4 +1,5 @@ -from exceptions import ServiceExit +from timeloop.exceptions import ServiceExit + def service_shutdown(signum, frame): raise ServiceExit