Skip to content

pre_subprocess_no_window

LaunchServerNoWindow

Bases: PreLaunchHook

Specifically for Zbrush to make the AYON tools launching faster

Source code in client/ayon_speedtree/hooks/pre_subprocess_no_window.py
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
class LaunchServerNoWindow(PreLaunchHook):
    """Specifically for Zbrush to make the AYON tools launching faster
    """

    # Should be as last hook because must change launch arguments to string
    order = 1000
    app_groups = {"speedtree"}
    platforms = {"windows"}
    launch_types = {LaunchTypes.local}

    def execute(self):

        self.launch_context.kwargs.update({
            "creationflags": subprocess.CREATE_NEW_CONSOLE,
            "stdout": None,
            "stderr": None
        })