1
0
mirror of https://gitlab.com/libvirt/libvirt-python.git synced 2025-07-17 00:59:36 +03:00

event-test.py: Use __file__

instead of sys.argv[0]

Signed-off-by: Philipp Hahn <hahn@univention.de>
This commit is contained in:
Philipp Hahn
2018-09-21 15:35:00 +02:00
committed by Michal Privoznik
parent 655b94803e
commit d408dc944d

View File

@ -667,7 +667,7 @@ def myConnectionCloseCallback(conn, reason, opaque):
run = False
def usage():
print("usage: "+os.path.basename(sys.argv[0])+" [-hdl] [uri]")
print("usage: %s [-hdl] [uri]" % (os.path.basename(__file__),))
print(" uri will default to qemu:///system")
print(" --help, -h Print this help message")
print(" --debug, -d Print debug output")