Set UE_PYTHONPATH when launching Unreal

This commit is contained in:
Simone Barbieri 2023-07-24 15:44:23 +01:00
parent e9cd50b1cf
commit 412c83bda1

View file

@ -54,7 +54,8 @@ class UnrealAddon(OpenPypeModule, IHostAddon):
# Set default environments if are not set via settings
defaults = {
"OPENPYPE_LOG_NO_COLORS": "True"
"OPENPYPE_LOG_NO_COLORS": "True",
"UE_PYTHONPATH": os.environ.get("PYTHONPATH", ""),
}
for key, value in defaults.items():
if not env.get(key):