[libvirt PATCH 1/2] docs: Recommend better python3 shebang

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxx>
---
 docs/hooks.rst | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/docs/hooks.rst b/docs/hooks.rst
index 9c5f3ff456..9387676a55 100644
--- a/docs/hooks.rst
+++ b/docs/hooks.rst
@@ -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.
-- 
2.39.2




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux