define 'AYON_UNREAL_ROOT' environment variable in unreal addon

This commit is contained in:
Jakub Trllo 2023-08-02 10:09:11 +02:00
parent 31fc87a667
commit 48ac6c8ed1

View file

@ -12,6 +12,11 @@ class UnrealAddon(OpenPypeModule, IHostAddon):
def initialize(self, module_settings):
self.enabled = True
def get_global_environments(self):
return {
"AYON_UNREAL_ROOT": UNREAL_ROOT_DIR,
}
def add_implementation_envs(self, env, app):
"""Modify environments to contain all required for implementation."""
# Set AYON_UNREAL_PLUGIN required for Unreal implementation