Replaces use of __file__
Author: Ben-MackCreated Feb 9, 2023Updated Jul 2, 2026
Labelsenhancementnew
The __file__ attribute is not guaranteed to exist, and causes problems for a number of packaging solutions.
Please see https://github.com/indygreg/PyOxidizer/issues/69
The guide recommend using importlib.resources: https://pyoxidizer.readthedocs.io/en/latest/oxidized_importer_resource_files.html#porting-code-to-modern-resources-apis
Source: httpie/cli