mirror of https://gitlab.com/pamhyr/pamhyr2
pamhyr: Fix execution without argument.
parent
b35be16268
commit
d0ea629c10
|
|
@ -72,8 +72,9 @@ def main():
|
|||
legal_info()
|
||||
|
||||
if len(sys.argv) > 1:
|
||||
# Run a script
|
||||
script = sys.argv[1]
|
||||
else:
|
||||
script = "gui"
|
||||
|
||||
if script == "help":
|
||||
ret = usage(sys.argv)
|
||||
|
|
@ -102,9 +103,6 @@ def main():
|
|||
ret = application.run()
|
||||
if ret != 0:
|
||||
application.usage()
|
||||
else:
|
||||
# No args, run Pamhyr2 interface
|
||||
ret = gui(app, conf)
|
||||
|
||||
display_timers()
|
||||
sys.exit(ret)
|
||||
|
|
|
|||
Loading…
Reference in New Issue