![]() 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. |
||
---|---|---|
.. | ||
CMakeLists.txt | ||
dnf-automatic.in | ||
dnf.in |