httpie / cli

🥧 HTTPie CLI — modern, user-friendly command-line HTTP client for the API era. JSON support, colors, sessions, downloads, plugins & more.
https://httpie.io
BSD 3-Clause "New" or "Revised" License
32.73k stars 3.68k forks source link

Replaces use of __file__ #1478

Open Ben-Mack opened 1 year ago

Ben-Mack commented 1 year ago

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