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

Ignore missing __file__ #476

Merged
merged 2 commits into from
Jan 14, 2020
Merged

Ignore missing __file__ #476

merged 2 commits into from
Jan 14, 2020

Conversation

jayvdb
Copy link
Contributor

@jayvdb jayvdb commented Nov 4, 2019

No description provided.

Many Python freezer tools have loaders that either do not set
__file__ or they set __file__ with a guess, or it triggers a
slower load process.
Skip asserts if __file__ is missing.
@eriknw
Copy link
Member

eriknw commented Jan 14, 2020

Which module doesn't have __file__? Regardless, this looks fine to me. Thanks @jayvdb!

@eriknw eriknw merged commit afef2c1 into pytoolz:master Jan 14, 2020
@jayvdb
Copy link
Contributor Author

jayvdb commented Jan 14, 2020

@eriknw , none have __file__ if toolz is used in a zipapp, or PyOxidizer app, etc.

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.

2 participants