This is a tracking bug for Change: Python: Add -P to default shebangs For more details, see: https://fedoraproject.org/wiki/Changes/PythonSafePath The -P flag will be added to the Python shebang macros (%{py3_shbang_opts}, %{py3_shebang_flags}, ...). Packages that adhere to those macros will change their Python shebangs from #! /usr/bin/python3 -s to #! /usr/bin/python3 -sP and as a result, will no longer have the directory of the script (such as /usr/bin) in sys.path. An opt-out mechanism exists. If you encounter a bug related to this Change, please do not comment here. Instead create a new bug and set it to block this bug.
PR in https://src.fedoraproject.org/rpms/python-rpm-macros/pull-request/141 Testing in https://copr.fedorainfracloud.org/coprs/g/python/python-safe-path/
Python Packaging guidelines update: https://pagure.io/packaging-committee/pull-request/1191
F37 was released today, so I am closing this tracker. If this Change was not completed, please notify me ASAP.