Remove use of __file__ to support pyoxidizer #743
Unanswered
JPHutchins
asked this question in
Questions
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
First Check
Commit to Help
Example Code
Description
The exception hook in
typer.main
will cause problems for pyoxidizer due to use of__file__
.https://github.com/tiangolo/typer/blob/3a7264cd56181690805f220cb44a0301c0fdf9f3/typer/main.py#L67-L68
pyoxidizer has some guidance on updating to compliant APIs: https://pyoxidizer.readthedocs.io/en/v0.10.3/oxidized_importer_resource_files.html?highlight=__file__#porting-code-to-modern-resources-apis
Operating System
Other
Operating System Details
This will impact all OS.
Typer Version
0.9.0
Python Version
3.12
Additional Context
Link to pyoxidizer issue: indygreg/PyOxidizer#69
Beta Was this translation helpful? Give feedback.
All reactions