fixed syntax error and simplified workfile argument

This commit is contained in:
iLLiCiTiT 2020-12-02 09:19:45 +01:00
parent eff8117881
commit a10bd5d55e
6 changed files with 6 additions and 18 deletions

View file

@ -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"]

View file

@ -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)

View file

@ -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)

View file

@ -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)

View file

@ -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)

View file

@ -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":