mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-01 16:34:53 +01:00
18 lines
501 B
Python
18 lines
501 B
Python
from pype.lib import PreLaunchHook
|
|
|
|
|
|
class NukeXLaunchArguments(PreLaunchHook):
|
|
order = 0
|
|
|
|
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
|