Skip to content

client.py Import Excepetion in __main__ call case #4

@GreenSkiLLz

Description

@GreenSkiLLz

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions