#8941 Usage of `/usr/bin/env` in Python scripts
Closed: fixed 10 months ago by frenaud. Opened 2 years ago 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

11 months ago

master:

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

ipa-4-9:

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

ipa-4-10:

  • 325a131 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)

10 months ago

Login to comment on this ticket.

Metadata