From: Philippe Mathieu-Daudé Date: Tue, 12 May 2020 10:32:36 +0000 (+0200) Subject: scripts/kvm/vmxcap: Use Python 3 interpreter and add pseudo-main() X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=e57a707a82a0ddc07615e048ef72cf8553c3a4d5;p=qemu.git scripts/kvm/vmxcap: Use Python 3 interpreter and add pseudo-main() Signed-off-by: Philippe Mathieu-Daudé Acked-by: Paolo Bonzini Reviewed-by: John Snow Reviewed-by: Kevin Wolf Message-Id: <20200512103238.7078-5-philmd@redhat.com> --- diff --git a/scripts/kvm/vmxcap b/scripts/kvm/vmxcap index 971ed0e721..6fe66d5f57 100755 --- a/scripts/kvm/vmxcap +++ b/scripts/kvm/vmxcap @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/env python3 # # tool for querying VMX capabilities # @@ -275,5 +275,6 @@ controls = [ ), ] -for c in controls: - c.show() +if __name__ == '__main__': + for c in controls: + c.show()