tools-python
tools-python copied to clipboard
Remove use of __file__
__file__
is an optional attribute of packages. c.f. https://github.com/indygreg/PyOxidizer/issues/69 for why and alternatives.
spdx/config.py:_base_dir = os.path.dirname(__file__)
The link to the promised solution results in a 404, do you have a different one? https://pyoxidizer.readthedocs.io/en/latest/packaging_pitfalls.html#reliance-on-file
Seems to be now at https://pyoxidizer.readthedocs.io/en/stable/oxidized_importer_behavior_and_compliance.html?highlight=file#file-and-cached-module-attributes