tools/deploy-qemu: use sys.exit instead of exit
exit is just a helper for the interactive shell, see: https://stackoverflow.com/questions/6501121/difference-between-exit-and-sys-exit-in-python Signed-off-by: Ondřej Budai <ondrej@budai.cz>
This commit is contained in:
parent
99d1d4e5d0
commit
86baf4879a
1 changed files with 1 additions and 1 deletions
|
|
@ -24,7 +24,7 @@ its content as additional arguments to qemu."""
|
||||||
|
|
||||||
if len(sys.argv) != 3:
|
if len(sys.argv) != 3:
|
||||||
print(HELP_TEXT)
|
print(HELP_TEXT)
|
||||||
exit(1)
|
sys.exit(1)
|
||||||
|
|
||||||
script_dir = os.path.dirname(os.path.realpath(__file__))
|
script_dir = os.path.dirname(os.path.realpath(__file__))
|
||||||
image = sys.argv[1]
|
image = sys.argv[1]
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue