From a5251e23816116ae7dee3874e1e2be532bc192e4 Mon Sep 17 00:00:00 2001 From: nico wellpott Date: Fri, 23 Jul 2021 17:14:44 +0200 Subject: [PATCH] fix: relative import inside package + change from .file to module.file in the import statement --- src/blimp/bl_process.py | 2 +- src/blimp/cli.py | 2 +- src/blimp/main.py | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/blimp/bl_process.py b/src/blimp/bl_process.py index 06c9c0f..e1b4160 100644 --- a/src/blimp/bl_process.py +++ b/src/blimp/bl_process.py @@ -3,7 +3,7 @@ import sys from ruamel.yaml import YAML, scalarstring -from .misc import local_file_present +from blimp.misc import local_file_present class ProcessBlocklist: diff --git a/src/blimp/cli.py b/src/blimp/cli.py index 12bd1dc..fc973eb 100644 --- a/src/blimp/cli.py +++ b/src/blimp/cli.py @@ -3,7 +3,7 @@ import argparse -from .main import Blimp +from blimp.main import Blimp def cli(): diff --git a/src/blimp/main.py b/src/blimp/main.py index 1d0c29b..c8e3425 100644 --- a/src/blimp/main.py +++ b/src/blimp/main.py @@ -6,8 +6,8 @@ from pathlib import Path import requests from appdirs import user_cache_dir -from .bl_process import ProcessBlocklist -from .misc import local_file_present +from blimp.bl_process import ProcessBlocklist +from blimp.misc import local_file_present class Blimp: @@ -91,5 +91,5 @@ class Blimp: if __name__ == "__main__": - from .cli import cli + from blimp.cli import cli cli()