Fix spawn --userscript with multiple args.
This is a regression introduced in 4485e4ee1b
.
We didn't unpack the argument list properly before passing it to
run_userscripts.
Fixes #476.
See #448.
This commit is contained in:
parent
011e398f77
commit
5c92144f6b
@ -813,10 +813,9 @@ class CommandDispatcher:
|
||||
log.procs.debug("Executing: {}, userscript={}".format(
|
||||
args, userscript))
|
||||
if userscript:
|
||||
if len(args) > 1:
|
||||
self.run_userscript(args[0], args[1:])
|
||||
else:
|
||||
self.run_userscript(args[0])
|
||||
cmd = args[0]
|
||||
args = [] if not args else args[1:]
|
||||
self.run_userscript(cmd, *args)
|
||||
else:
|
||||
try:
|
||||
subprocess.Popen(args)
|
||||
|
Loading…
Reference in New Issue
Block a user