Skip to content

Conversation

@BradenM
Copy link
Contributor

@BradenM BradenM commented Dec 18, 2022

The top-level .utils.version import in the package __init__.py causes the utils.readconfig import to trigger during import and/or import of any submodules.

When you are not in the repository root directory, this throws a FileNotFound exception.

This prevents usage of micropython-stubber as a library.

…en outside of root directory.

Signed-off-by: Braden Mars <[email protected]>
@Josverl Josverl added bug Something isn't working enhancement New feature or request labels Dec 18, 2022
@Josverl
Copy link
Owner

Josverl commented Dec 18, 2022

is this the only relative import that is causing issues,
or is it worth replacing other relative imports with absolute imports ?

@Josverl Josverl merged commit 6f50ab7 into Josverl:main Dec 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants