Bases: AYONAddon, IHostAddon
  Source code in client/ayon_tvpaint/addon.py
 | 17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40 | class TVPaintAddon(AYONAddon, IHostAddon):
    name = "tvpaint"
    version = __version__
    host_name = "tvpaint"
    def add_implementation_envs(self, env, _app):
        """Modify environments to contain all required for implementation."""
        defaults = {
            "AYON_LOG_NO_COLORS": "1"
        }
        for key, value in defaults.items():
            if not env.get(key):
                env[key] = value
    def get_launch_hook_paths(self, app):
        if app.host_name != self.host_name:
            return []
        return [
            os.path.join(TVPAINT_ROOT_DIR, "hooks")
        ]
    def get_workfile_extensions(self):
        return [".tvpp"]
 | 
     add_implementation_envs(env, _app) 
  Modify environments to contain all required for implementation.
  Source code in client/ayon_tvpaint/addon.py
 | 22
23
24
25
26
27
28
29
30 | def add_implementation_envs(self, env, _app):
    """Modify environments to contain all required for implementation."""
    defaults = {
        "AYON_LOG_NO_COLORS": "1"
    }
    for key, value in defaults.items():
        if not env.get(key):
            env[key] = value
 |