mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-01 16:34:53 +01:00
launch arguments may be a string
This commit is contained in:
parent
f2ac34fe2e
commit
fb4786e8aa
1 changed files with 9 additions and 4 deletions
|
|
@ -804,10 +804,15 @@ class ApplicationLaunchContext:
|
||||||
self.log.debug("All prelaunch hook executed. Starting new process.")
|
self.log.debug("All prelaunch hook executed. Starting new process.")
|
||||||
|
|
||||||
# Prepare subprocess args
|
# Prepare subprocess args
|
||||||
args = self.clear_launch_args(self.launch_args)
|
args_len_str = ""
|
||||||
self.log.debug(
|
if isinstance(self.launch_args, str):
|
||||||
"Launching \"{}\" with args ({}): {}".format(
|
args = self.launch_args
|
||||||
self.app_name, len(args), args
|
else:
|
||||||
|
args = self.clear_launch_args(self.launch_args)
|
||||||
|
args_len_str = " ({})".format(len(args))
|
||||||
|
self.log.info(
|
||||||
|
"Launching \"{}\" with args{}: {}".format(
|
||||||
|
self.app_name, args_len_str, args
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
# Run process
|
# Run process
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue