Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

client.py Import Excepetion in __main__ call case #4

Open
GreenSkiLLz opened this issue Jul 9, 2023 · 0 comments
Open

client.py Import Excepetion in __main__ call case #4

GreenSkiLLz opened this issue Jul 9, 2023 · 0 comments

Comments

@GreenSkiLLz
Copy link

Hey, so basically inside of the client.py file the imports that get handled only for a package case. extractors.py is a main call case so
from . import data and from .exceptions import * does not work properly.
I would simply handle both cases so you can Implement the API as directory Files and not only as a Package. Like this For Example.

try:
from . import data
from.exceptions import *
except:
import data
from exceptions import *

I'm very interested in this API so if could happen that i start asking questions more frequently :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant