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

fix: parse the path for package manually when module is __main__ #21

Merged
merged 2 commits into from
Jan 24, 2024

Conversation

isidentical
Copy link
Collaborator

No description provided.

badayvedat
badayvedat previously approved these changes Jan 4, 2024
@squat
Copy link
Contributor

squat commented Jan 5, 2024

This is definitely over my head! What is this actually fixing/solving?

@@ -55,6 +56,16 @@ def add_serialization_listeners_for(obj):
return None

_MODULES.add(module_name)
if module_name == "__main__":
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can you add an explainer for this. I think it's just including all the parent packages of the file called, right?

Does this help for local imports?

@isidentical isidentical merged commit b5cae79 into main Jan 24, 2024
3 of 4 checks passed
@isidentical isidentical deleted the add-stuff branch January 24, 2024 02:09
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

Successfully merging this pull request may close these issues.

5 participants