]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
docs: Recommend better python3 shebang
authorAndrea Bolognani <abologna@redhat.com>
Mon, 20 Feb 2023 10:14:27 +0000 (11:14 +0100)
committerAndrea Bolognani <abologna@redhat.com>
Mon, 20 Feb 2023 17:33:01 +0000 (18:33 +0100)
Python scripts should always invoked the interpreter through
env(1) to ensure that they work on macOS and the BSDs, and at
this point not explicitly asking for Python 3 doesn't really
make sense.

Signed-off-by: Andrea Bolognani <abologna@redhat.com>
Reviewed-by: Erik Skultety <eskultet@redhat.com>
docs/hooks.rst

index 9c5f3ff4569191f1b0f5b937e7d8cb96c4839356..9387676a55bb656997d519398ce2e5746c1fc0c7 100644 (file)
@@ -78,7 +78,7 @@ or:
 
 ::
 
-   #!/usr/bin/python
+   #!/usr/bin/env python3
 
 Other command interpreters are equally valid, as is any executable binary, so
 you are welcome to use your favourite languages.