Skip to content

Commit 3e67e5c

Browse files
Mic92keszybz
authored andcommitted
more portable python shebangs (systemd#5816)
This is useful on systems like NixOS, where python3 is not in /usr/bin/python3 as well as for people using alternative ways to install python such as virtualenv/pyenv.
1 parent db374ff commit 3e67e5c

18 files changed

+19
-19
lines changed

hwdb/acpi-update.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/python3
1+
#!/usr/bin/env python3
22

33
from html.parser import HTMLParser
44
from enum import Enum

hwdb/parse_hwdb.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/python3
1+
#!/usr/bin/env python3
22
# -*- Mode: python; coding: utf-8; indent-tabs-mode: nil -*- */
33
#
44
# This file is part of systemd. It is distrubuted under the MIT license, see

man/90-rearrange-path.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/python3
1+
#!/usr/bin/env python3
22

33
"""
44

src/basic/generate-gperfs.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/python3
1+
#!/usr/bin/env python3
22

33
"""Generate %-from-name.gperf from %-list.txt
44
"""

src/journal-remote/log-generator.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/python3
1+
#!/usr/bin/env python3
22
import sys
33
import argparse
44

src/resolve/generate-dns_type-gperf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/python3
1+
#!/usr/bin/env python3
22

33
"""Generate %-from-name.gperf from %-list.txt
44
"""

src/test/generate-sym-test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/python3
1+
#!/usr/bin/env python3
22
import sys, re
33

44
print('#include <stdio.h>')

test/create-sys-script.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
#!/usr/bin/python3
1+
#!/usr/bin/env python3
22

3-
OUTFILE_HEADER = """#!/usr/bin/python3
3+
OUTFILE_HEADER = """#!/usr/bin/env python3
44
#
55
# create-sys-script.py
66
#

test/rule-syntax-check.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/python3
1+
#!/usr/bin/env python3
22
# Simple udev rules syntax checker
33
#
44
# (C) 2010 Canonical Ltd.

test/sys-script.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/python3
1+
#!/usr/bin/env python3
22
#
33
# sys-script.py
44
#

0 commit comments

Comments
 (0)