module relative path

This commit is contained in:
Ondrej Samohel 2022-03-01 15:44:08 +01:00
parent 306eddd549
commit 11b3d2cbaf
No known key found for this signature in database
GPG key ID: 02376E18990A97C6

View file

@ -1,11 +1,12 @@
import os
import openpype.hosts
def add_implementation_envs(env, _app):
"""Modify environments to contain all required for implementation."""
# Set OPENPYPE_UNREAL_PLUGIN required for Unreal implementation
unreal_plugin_path = os.path.join(
os.environ["OPENPYPE_ROOT"], "openpype", "hosts",
os.path.dirname(os.path.abspath(openpype.hosts.__file__)),
"unreal", "integration"
)
env["OPENPYPE_UNREAL_PLUGIN"] = unreal_plugin_path