dnf/bin
Jaroslav Rohel c8dbe6ea40 Fix: No traceback when Python interpreter is running with -P
There was code in dnf and dnf-automatic to support running them from
the git tree. This was a developer-oriented hack that should not exist
in production code. It assumed that when running an installed dnf,
the `sys.path[0]` contains `/usr/bin`. If not, it overwrites
the contents of `sys.path[0]`.

This is a problem when running the Python interpreter with the `-P`
parameter (meaning: Don't automatically prepend a potentially unsafe
path to sys.path such as the current directory, the script's directory
or an empty string.)

The fix removes this developer-oriented hack. Developers should instead
set PYTHONPATH in the environment.
2024-04-29 12:48:30 +02:00
..
CMakeLists.txt Ensure that correct python version is used for build - PYTHON_EXECUTABLE (RhBug:1598988) (#1129) 2018-07-12 11:49:08 +02:00
dnf-automatic.in Fix: No traceback when Python interpreter is running with -P 2024-04-29 12:48:30 +02:00
dnf.in Fix: No traceback when Python interpreter is running with -P 2024-04-29 12:48:30 +02:00