From 2daf34d01e716c770e26bfce5d5ff93bbefbd349 Mon Sep 17 00:00:00 2001 From: Peerchemist Date: Wed, 23 Jan 2019 14:55:04 +0100 Subject: [PATCH] fix module import --- timeloop/__init__.py | 2 +- timeloop/app.py | 12 ++++++++---- timeloop/helpers.py | 3 ++- 3 files changed, 11 insertions(+), 6 deletions(-) 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