fix: relative import inside package

+ change from .file to module.file in the import statement
This commit is contained in:
nico 2021-07-23 17:14:44 +02:00
parent c8de19f4ec
commit a5251e2381
Signed by: mightyBroccoli
GPG Key ID: 1F6495B44DABCE6E
3 changed files with 5 additions and 5 deletions

View File

@ -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:

View File

@ -3,7 +3,7 @@
import argparse
from .main import Blimp
from blimp.main import Blimp
def cli():

View File

@ -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()