diff --git a/pype/hooks/hiero/pre_launch_args.py b/pype/hooks/hiero/pre_launch_args.py index cb03f03b88..7139f57bbb 100644 --- a/pype/hooks/hiero/pre_launch_args.py +++ b/pype/hooks/hiero/pre_launch_args.py @@ -7,18 +7,8 @@ class HieroLaunchArguments(PreLaunchHook): hosts = ["hiero"] def execute(self): - """Prepare suprocess launch arguments for NukeX.""" - # Get executable - executable = self.launch_context.launch_args[0] - - if isinstance(executable, str): - executable = [executable] - - # Add `nukex` argument and make sure it's bind to execuable - executable.append("--hiero") - - self.launch_context.launch_args[0] = executable - + """Prepare suprocess launch arguments for Hiero.""" + # Add path to workfile to arguments if self.data.get("start_last_workfile"): last_workfile = self.data.get("last_workfile_path") if os.path.exists(last_workfile): diff --git a/pype/hooks/maya/pre_launch_args.py b/pype/hooks/maya/pre_launch_args.py index 6aed54a3c3..570c8e79b8 100644 --- a/pype/hooks/maya/pre_launch_args.py +++ b/pype/hooks/maya/pre_launch_args.py @@ -8,7 +8,8 @@ class MayaLaunchArguments(PreLaunchHook): hosts = ["maya"] def execute(self): - """Prepare suprocess launch arguments for NukeX.""" + """Prepare suprocess launch arguments for Maya.""" + # Add path to workfile to arguments if self.data.get("start_last_workfile"): last_workfile = self.data.get("last_workfile_path") if os.path.exists(last_workfile): diff --git a/pype/hooks/nukestudio/pre_launch_args.py b/pype/hooks/nukestudio/pre_launch_args.py index d567f36ad0..a5e04bf956 100644 --- a/pype/hooks/nukestudio/pre_launch_args.py +++ b/pype/hooks/nukestudio/pre_launch_args.py @@ -7,18 +7,8 @@ class NukeStudioLaunchArguments(PreLaunchHook): hosts = ["nukestudio"] def execute(self): - """Prepare suprocess launch arguments for NukeX.""" - # Get executable - executable = self.launch_context.launch_args[0] - - if isinstance(executable, str): - executable = [executable] - - # Add `nukex` argument and make sure it's bind to execuable - executable.append("--studio") - - self.launch_context.launch_args[0] = executable - + """Prepare suprocess launch arguments for NukeStudio.""" + # Add path to workfile to arguments if self.data.get("start_last_workfile"): last_workfile = self.data.get("last_workfile_path") if os.path.exists(last_workfile): diff --git a/pype/hooks/nukex/pre_launch_args.py b/pype/hooks/nukex/pre_launch_args.py index eb0b963926..39ccb5a58a 100644 --- a/pype/hooks/nukex/pre_launch_args.py +++ b/pype/hooks/nukex/pre_launch_args.py @@ -8,17 +8,7 @@ class NukeXLaunchArguments(PreLaunchHook): def execute(self): """Prepare suprocess launch arguments for NukeX.""" - # Get executable - executable = self.launch_context.launch_args[0] - - if isinstance(executable, str): - executable = [executable] - - # Add `nukex` argument and make sure it's bind to execuable - executable.append("--nukex") - - self.launch_context.launch_args[0] = executable - + # Add path to workfile to arguments if self.data.get("start_last_workfile"): last_workfile = self.data.get("last_workfile_path") if os.path.exists(last_workfile):