mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-25 05:14:40 +01:00
fixed syntax error and simplified workfile argument
This commit is contained in:
parent
eff8117881
commit
a10bd5d55e
6 changed files with 6 additions and 18 deletions
|
|
@ -20,9 +20,7 @@ class CelactionPrelaunchHook(PreLaunchHook):
|
|||
# Add workfile path to launch arguments
|
||||
workfile_path = self.workfile_path()
|
||||
if workfile_path:
|
||||
self.launch_context.launch_args.append(
|
||||
"\"{}\"".format(workfile_path)
|
||||
)
|
||||
self.launch_context.launch_args.append(workfile_path)
|
||||
|
||||
project_name = self.data["project_name"]
|
||||
asset_name = self.data["asset_name"]
|
||||
|
|
|
|||
|
|
@ -12,6 +12,4 @@ class HieroLaunchArguments(PreLaunchHook):
|
|||
if self.data.get("start_last_workfile"):
|
||||
last_workfile = self.data.get("last_workfile_path")
|
||||
if os.path.exists(last_workfile):
|
||||
self.launch_context.launch_args.append(
|
||||
"{}.format(last_workfile)
|
||||
)
|
||||
self.launch_context.launch_args.append(last_workfile)
|
||||
|
|
|
|||
|
|
@ -13,6 +13,4 @@ class MayaLaunchArguments(PreLaunchHook):
|
|||
if self.data.get("start_last_workfile"):
|
||||
last_workfile = self.data.get("last_workfile_path")
|
||||
if os.path.exists(last_workfile):
|
||||
self.launch_context.launch_args.append(
|
||||
"{}".format(last_workfile)
|
||||
)
|
||||
self.launch_context.launch_args.append(last_workfile)
|
||||
|
|
|
|||
|
|
@ -12,6 +12,4 @@ class NukeStudioLaunchArguments(PreLaunchHook):
|
|||
if self.data.get("start_last_workfile"):
|
||||
last_workfile = self.data.get("last_workfile_path")
|
||||
if os.path.exists(last_workfile):
|
||||
self.launch_context.launch_args.append(
|
||||
"{}".format(last_workfile)
|
||||
)
|
||||
self.launch_context.launch_args.append(last_workfile)
|
||||
|
|
|
|||
|
|
@ -12,6 +12,4 @@ class NukeXLaunchArguments(PreLaunchHook):
|
|||
if self.data.get("start_last_workfile"):
|
||||
last_workfile = self.data.get("last_workfile_path")
|
||||
if os.path.exists(last_workfile):
|
||||
self.launch_context.launch_args.append(
|
||||
"{}".format(last_workfile)
|
||||
)
|
||||
self.launch_context.launch_args.append(last_workfile)
|
||||
|
|
|
|||
|
|
@ -36,9 +36,7 @@ class TvpaintPrelaunchHook(PreLaunchHook):
|
|||
# Add workfile to launch arguments
|
||||
workfile_path = self.workfile_path()
|
||||
if workfile_path:
|
||||
new_launch_args.append(
|
||||
"{}".format(workfile_path)
|
||||
)
|
||||
new_launch_args.append(workfile_path)
|
||||
|
||||
# How to create new command line
|
||||
# if platform.system().lower() == "windows":
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue