#8941 Usage of `/usr/bin/env` in Python scripts
Closed: fixed by frenaud. Opened by slev.

There are several Python scripts that utilize env in today's main:

[freeipa]$ git grep /usr/bin/env upstream/master
upstream/master:contrib/lite-server.py:#!/usr/bin/env python3
upstream/master:contrib/lite-setup.py:#!/usr/bin/env python3
upstream/master:install/tools/ipa-ccache-sweeper.in:#!/usr/bin/env python3

It's common practice to replace it with an absolute path to Python interpreter to guarantee we use a system-provided one.


Metadata Update from @rcritten:
- Issue assigned to rcritten

PR https://github.com/freeipa/freeipa/pull/6857

master:

  • a1ed0ff77ee6536cc80da1fe7e89d9b164a4c558 Replace usage of #!/usr/bin/env python3 with #!/usr/bin/python3

ipa-4-9:

  • e6f4478b87e441d9e9ad6fdc358f942981996c5a Replace usage of #!/usr/bin/env python3 with #!/usr/bin/python3

ipa-4-10:

  • 325a13196b32c627854c8d7594e23b58167499f0 Replace usage of #!/usr/bin/env python3 with #!/usr/bin/python3

Metadata Update from @frenaud:
- Issue close_status updated to: fixed
- Issue status updated to: Closed (was: Open)

Metadata