mirror of
https://gitlab.com/libvirt/libvirt-python.git
synced 2025-08-01 00:21:59 +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:
committed by
Michal Privoznik
parent
655b94803e
commit
d408dc944d
@ -667,7 +667,7 @@ def myConnectionCloseCallback(conn, reason, opaque):
|
|||||||
run = False
|
run = False
|
||||||
|
|
||||||
def usage():
|
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(" uri will default to qemu:///system")
|
||||||
print(" --help, -h Print this help message")
|
print(" --help, -h Print this help message")
|
||||||
print(" --debug, -d Print debug output")
|
print(" --debug, -d Print debug output")
|
||||||
|
Reference in New Issue
Block a user