mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 13:45:38 +00:00
python: Don't hardcode interpreter path
This is particularly useful on operating systems that don't ship Python as part of the base system (eg. FreeBSD) while still working just as well as it did before on Linux. While at it, make it explicit that our scripts are only going to work with Python 2, and remove the usage of unbuffered I/O, which as far as I can tell has no effect on the output files. Signed-off-by: Andrea Bolognani <abologna@redhat.com>
This commit is contained in:
parent
90b17aef1a
commit
f34fdd5ab6
@ -1,4 +1,4 @@
|
||||
#!/usr/bin/python -u
|
||||
#!/usr/bin/env python2
|
||||
#
|
||||
# This is the API builder, it parses the C sources and build the
|
||||
# API formal description in XML.
|
||||
|
@ -1,4 +1,4 @@
|
||||
#!/usr/bin/python -u
|
||||
#!/usr/bin/env python2
|
||||
#
|
||||
# imports the API description and fills up a database with
|
||||
# name relevance to modules, functions or web pages
|
||||
|
@ -1,4 +1,4 @@
|
||||
#!/usr/bin/env python
|
||||
#!/usr/bin/env python2
|
||||
|
||||
# reformat-news.py: Reformat the NEWS file properly
|
||||
#
|
||||
|
@ -1,4 +1,4 @@
|
||||
#!/usr/bin/env python
|
||||
#!/usr/bin/env python2
|
||||
|
||||
#
|
||||
# esx_vi_generator.py: generates most of the SOAP type mapping code
|
||||
|
@ -1,4 +1,4 @@
|
||||
#!/usr/bin/env python
|
||||
#!/usr/bin/env python2
|
||||
|
||||
#
|
||||
# hyperv_wmi_generator.py: generates most of the WMI type mapping code
|
||||
|
@ -1,4 +1,4 @@
|
||||
#!/usr/bin/python2
|
||||
#!/usr/bin/env python2
|
||||
|
||||
import sys
|
||||
import json
|
||||
|
Loading…
Reference in New Issue
Block a user