From 6aca2934ac52bf889de167b89579d4b3fc8af3f1 Mon Sep 17 00:00:00 2001 From: Kumi Date: Fri, 23 Sep 2022 05:22:24 +0000 Subject: [PATCH] Use relative imports --- src/pyadonis/classes/adonis.py | 7 +++---- src/pyadonis/pindata.py | 4 ++-- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/src/pyadonis/classes/adonis.py b/src/pyadonis/classes/adonis.py index d801866..3686814 100644 --- a/src/pyadonis/classes/adonis.py +++ b/src/pyadonis/classes/adonis.py @@ -3,10 +3,9 @@ from base64 import b64decode import json -from classes.exceptions import AdonisAuthenticationDeniedError, AdonisError -from classes.crew import Crew - -from const import USER_AGENT +from .exceptions import AdonisAuthenticationDeniedError, AdonisError +from .crew import Crew +from ..const import USER_AGENT from PIL.Image import Image diff --git a/src/pyadonis/pindata.py b/src/pyadonis/pindata.py index dcea934..2dfd3f3 100644 --- a/src/pyadonis/pindata.py +++ b/src/pyadonis/pindata.py @@ -1,8 +1,8 @@ from argparse import ArgumentParser from json import dumps -from classes.config import Config -from classes.adonis import Adonis +from .classes.config import Config +from .classes.adonis import Adonis if __name__ == "__main__":