more portable python shebangs (#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.
This commit is contained in:
parent
db374ff564
commit
3e67e5c992
|
@ -1,4 +1,4 @@
|
||||||
#!/usr/bin/python3
|
#!/usr/bin/env python3
|
||||||
|
|
||||||
from html.parser import HTMLParser
|
from html.parser import HTMLParser
|
||||||
from enum import Enum
|
from enum import Enum
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/usr/bin/python3
|
#!/usr/bin/env python3
|
||||||
# -*- Mode: python; coding: utf-8; indent-tabs-mode: nil -*- */
|
# -*- Mode: python; coding: utf-8; indent-tabs-mode: nil -*- */
|
||||||
#
|
#
|
||||||
# This file is part of systemd. It is distrubuted under the MIT license, see
|
# This file is part of systemd. It is distrubuted under the MIT license, see
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/usr/bin/python3
|
#!/usr/bin/env python3
|
||||||
|
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/usr/bin/python3
|
#!/usr/bin/env python3
|
||||||
|
|
||||||
"""Generate %-from-name.gperf from %-list.txt
|
"""Generate %-from-name.gperf from %-list.txt
|
||||||
"""
|
"""
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/usr/bin/python3
|
#!/usr/bin/env python3
|
||||||
import sys
|
import sys
|
||||||
import argparse
|
import argparse
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/usr/bin/python3
|
#!/usr/bin/env python3
|
||||||
|
|
||||||
"""Generate %-from-name.gperf from %-list.txt
|
"""Generate %-from-name.gperf from %-list.txt
|
||||||
"""
|
"""
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/usr/bin/python3
|
#!/usr/bin/env python3
|
||||||
import sys, re
|
import sys, re
|
||||||
|
|
||||||
print('#include <stdio.h>')
|
print('#include <stdio.h>')
|
||||||
|
|
|
@ -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
|
# create-sys-script.py
|
||||||
#
|
#
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/usr/bin/python3
|
#!/usr/bin/env python3
|
||||||
# Simple udev rules syntax checker
|
# Simple udev rules syntax checker
|
||||||
#
|
#
|
||||||
# (C) 2010 Canonical Ltd.
|
# (C) 2010 Canonical Ltd.
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/usr/bin/python3
|
#!/usr/bin/env python3
|
||||||
#
|
#
|
||||||
# sys-script.py
|
# sys-script.py
|
||||||
#
|
#
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/usr/bin/python3
|
#!/usr/bin/env python3
|
||||||
#
|
#
|
||||||
# systemd-sysv-generator integration test
|
# systemd-sysv-generator integration test
|
||||||
#
|
#
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/usr/bin/python3
|
#!/usr/bin/env python3
|
||||||
|
|
||||||
#
|
#
|
||||||
# Copyright 2017 Michal Sekletar <msekleta@redhat.com>
|
# Copyright 2017 Michal Sekletar <msekleta@redhat.com>
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/usr/bin/python3
|
#!/usr/bin/env python3
|
||||||
# -*- Mode: python; coding: utf-8; indent-tabs-mode: nil -*- */
|
# -*- Mode: python; coding: utf-8; indent-tabs-mode: nil -*- */
|
||||||
#
|
#
|
||||||
# This file is part of systemd. It is distrubuted under the MIT license, see
|
# This file is part of systemd. It is distrubuted under the MIT license, see
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/usr/bin/python3
|
#!/usr/bin/env python3
|
||||||
# -*- Mode: python; coding: utf-8; indent-tabs-mode: nil -*- */
|
# -*- Mode: python; coding: utf-8; indent-tabs-mode: nil -*- */
|
||||||
#
|
#
|
||||||
# This file is part of systemd.
|
# This file is part of systemd.
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/usr/bin/python3
|
#!/usr/bin/env python3
|
||||||
# -*- Mode: python; coding: utf-8; indent-tabs-mode: nil -*- */
|
# -*- Mode: python; coding: utf-8; indent-tabs-mode: nil -*- */
|
||||||
#
|
#
|
||||||
# This file is part of systemd.
|
# This file is part of systemd.
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/usr/bin/python3
|
#!/usr/bin/env python3
|
||||||
# -*- Mode: python; coding: utf-8; indent-tabs-mode: nil -*- */
|
# -*- Mode: python; coding: utf-8; indent-tabs-mode: nil -*- */
|
||||||
#
|
#
|
||||||
# This file is part of systemd.
|
# This file is part of systemd.
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/usr/bin/python3
|
#!/usr/bin/env python3
|
||||||
# -*- Mode: python; coding: utf-8; indent-tabs-mode: nil -*- */
|
# -*- Mode: python; coding: utf-8; indent-tabs-mode: nil -*- */
|
||||||
#
|
#
|
||||||
# This file is part of systemd.
|
# This file is part of systemd.
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/usr/bin/python3
|
#!/usr/bin/env python3
|
||||||
# -*- Mode: python; coding: utf-8; indent-tabs-mode: nil -*- */
|
# -*- Mode: python; coding: utf-8; indent-tabs-mode: nil -*- */
|
||||||
#
|
#
|
||||||
# This file is part of systemd.
|
# This file is part of systemd.
|
||||||
|
|
Loading…
Reference in New Issue