]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
more portable python shebangs (#5816)
authorJörg Thalheim <Mic92@users.noreply.github.com>
Mon, 1 May 2017 00:26:56 +0000 (02:26 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Mon, 1 May 2017 00:26:56 +0000 (20:26 -0400)
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.

18 files changed:
hwdb/acpi-update.py
hwdb/parse_hwdb.py
man/90-rearrange-path.py
src/basic/generate-gperfs.py
src/journal-remote/log-generator.py
src/resolve/generate-dns_type-gperf.py
src/test/generate-sym-test.py
test/create-sys-script.py
test/rule-syntax-check.py
test/sys-script.py
test/sysv-generator-test.py
test/test-exec-deserialization.py
tools/catalog-report.py
tools/gdb-sd_dump_hashmaps.py
tools/make-directive-index.py
tools/make-man-index.py
tools/make-man-rules.py
tools/xml_helper.py

index 50da531dc659de9d189a9f9deae0caa2c14c722e..2c23b057fb2c43d9d286f2547c002b7c259c087f 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/python3
+#!/usr/bin/env python3
 
 from html.parser import HTMLParser
 from enum import Enum
index e2c65c4be0754746c79d4204133eb4070e6c61dd..adf8a1963ea536d3e8fd267a52f2459cf68a9d1b 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/python3
+#!/usr/bin/env python3
 # -*- Mode: python; coding: utf-8; indent-tabs-mode: nil -*- */
 #
 # This file is part of systemd. It is distrubuted under the MIT license, see
index c6ff32210f6753034e6f18715da471ba20c15631..7537d5e915812194c8c5b7b45b75cd3b19b19532 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/python3
+#!/usr/bin/env python3
 
 """
 
index 2e7d8931ddbbc40fbc493b1cb6ea269fe7916e3c..d4cc9aa45c29530c35dfa5f579b596ae12b1478d 100644 (file)
@@ -1,4 +1,4 @@
-#!/usr/bin/python3
+#!/usr/bin/env python3
 
 """Generate %-from-name.gperf from %-list.txt
 """
index 7b434b334e65e101048408f2f07c7b45c44bd94c..c2f945bb47382c4eb5b3f901858dd4059c775623 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/python3
+#!/usr/bin/env python3
 import sys
 import argparse
 
index fb36c850af6bf4f967c8d4ffb804eb7fa5478773..8a0b43c277ae148db7607a2e9824270a1b667bf4 100644 (file)
@@ -1,4 +1,4 @@
-#!/usr/bin/python3
+#!/usr/bin/env python3
 
 """Generate %-from-name.gperf from %-list.txt
 """
index a3350c8a81f6e6381e9159b5ec14ad8f441d7426..357cce8e44af1853f52f9e520b043bdf8ee451cc 100644 (file)
@@ -1,4 +1,4 @@
-#!/usr/bin/python3
+#!/usr/bin/env python3
 import sys, re
 
 print('#include <stdio.h>')
index 4b7abd24aebf2047742adf3f21853cf888d7734a..402b4f83abd3010901c4ef0b1ced2bf110471eda 100755 (executable)
@@ -1,6 +1,6 @@
-#!/usr/bin/python3
+#!/usr/bin/env python3
 
-OUTFILE_HEADER = """#!/usr/bin/python3
+OUTFILE_HEADER = """#!/usr/bin/env python3
 #
 # create-sys-script.py
 #
index dab01f1d8aca4afb52bbc385f122859ac1336e1a..14739df49321cba8a3194b004bdb9434260fb79e 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/python3
+#!/usr/bin/env python3
 # Simple udev rules syntax checker
 #
 # (C) 2010 Canonical Ltd.
index a9c0046667c8e354a62fc28fb351a4a7375731ec..6c9ee5ff834c24261bce654a5539ff92f091a75e 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/python3
+#!/usr/bin/env python3
 #
 # sys-script.py
 #
index 16ea65690a2b9f87832228c8d0776dbc0acd273f..d116fffe38fdb2ec16c6e4df08460475ecac2ad6 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/python3
+#!/usr/bin/env python3
 #
 # systemd-sysv-generator integration test
 #
index b974b1c1336e342656013a4137732f857b77ad0d..39a9e62e154e498ecbe9718975feaca529384b1e 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/python3
+#!/usr/bin/env python3
 
 #
 #  Copyright 2017 Michal Sekletar <msekleta@redhat.com>
index b220060cc8adab69f7fe0192563aa4f6b9e08b03..357e498cdcf075effd811c44b51ece830fab80b6 100644 (file)
@@ -1,4 +1,4 @@
-#!/usr/bin/python3
+#!/usr/bin/env python3
 # -*- Mode: python; coding: utf-8; indent-tabs-mode: nil -*- */
 #
 # This file is part of systemd. It is distrubuted under the MIT license, see
index d20016e0058b37993844a8c0ef7d57ca74164fa5..62ce8006f53ab4eef89a87775625f1ee34fcc573 100644 (file)
@@ -1,4 +1,4 @@
-#!/usr/bin/python3
+#!/usr/bin/env python3
 #  -*- Mode: python; coding: utf-8; indent-tabs-mode: nil -*- */
 #
 #  This file is part of systemd.
index 8ce09ca2fa078a988ceb68eb87552fc86dfa56b7..1b287997fa7e6839e665b2498506020309a07b76 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/python3
+#!/usr/bin/env python3
 #  -*- Mode: python; coding: utf-8; indent-tabs-mode: nil -*- */
 #
 #  This file is part of systemd.
index 50ad9532cdc57e3dd885107b6e6e04da86b51c0d..abc33e7394d9a8251c94cc278d920a8afe75d79a 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/python3
+#!/usr/bin/env python3
 #  -*- Mode: python; coding: utf-8; indent-tabs-mode: nil -*- */
 #
 #  This file is part of systemd.
index ecb9d2d9b5003ae4364a94e037948e5e5076dbc8..e9e39f10afa87375ac2b91e4d3494ae7613355d3 100644 (file)
@@ -1,4 +1,4 @@
-#!/usr/bin/python3
+#!/usr/bin/env python3
 #  -*- Mode: python; coding: utf-8; indent-tabs-mode: nil -*- */
 #
 #  This file is part of systemd.
index b2c036909d973c883608169047cbd1f73eb26e7a..0088be5bd9e50d4997a668850bace36cb57947fe 100644 (file)
@@ -1,4 +1,4 @@
-#!/usr/bin/python3
+#!/usr/bin/env python3
 #  -*- Mode: python; coding: utf-8; indent-tabs-mode: nil -*- */
 #
 #  This file is part of systemd.