diff --git a/src/file_auto_expiry/main.py b/src/file_auto_expiry/main.py index 87c2a23..c43be1c 100644 --- a/src/file_auto_expiry/main.py +++ b/src/file_auto_expiry/main.py @@ -1,5 +1,5 @@ -from utils.interface import * -from data.expiry_constants import SECS_PER_DAY +from .utils.interface import * +from .data.expiry_constants import SECS_PER_DAY import time import typer app = typer.Typer() diff --git a/src/file_auto_expiry/utils/expiry_checks.py b/src/file_auto_expiry/utils/expiry_checks.py index 3f9d6c3..d99b4ff 100644 --- a/src/file_auto_expiry/utils/expiry_checks.py +++ b/src/file_auto_expiry/utils/expiry_checks.py @@ -1,9 +1,10 @@ import os import stat -from data.expiry_constants import * -from data.expiry_constants import DIRECTORIES_TO_IGNORE -from data.tuples import * -from utils.file_creator import * +from ..data.expiry_constants import * +from ..data.expiry_constants import DIRECTORIES_TO_IGNORE +from ..data.tuples import * +from .file_creator import * + def is_expired(path, expiry_threshold): """ Interface function to return if a file-structure is expired or not. diff --git a/src/file_auto_expiry/utils/file_creator.py b/src/file_auto_expiry/utils/file_creator.py index 6fe68b2..0c278a5 100644 --- a/src/file_auto_expiry/utils/file_creator.py +++ b/src/file_auto_expiry/utils/file_creator.py @@ -1,6 +1,6 @@ import os import pwd -from data.tuples import * +from ..data.tuples import * def get_file_creator(path): """ diff --git a/src/file_auto_expiry/utils/interface.py b/src/file_auto_expiry/utils/interface.py index 51544ee..c180bb5 100644 --- a/src/file_auto_expiry/utils/interface.py +++ b/src/file_auto_expiry/utils/interface.py @@ -3,9 +3,9 @@ import json import datetime import time -from data.expiry_constants import * -from data.tuples import * -from utils.expiry_checks import is_expired +from ..data.expiry_constants import * +from ..data.tuples import * +from .expiry_checks import is_expired def get_file_creator(path): """