diff --git a/openpype/lib/applications.py b/openpype/lib/applications.py index 97cc213646..2101303771 100644 --- a/openpype/lib/applications.py +++ b/openpype/lib/applications.py @@ -938,8 +938,10 @@ class ApplicationLaunchContext: # Prepare data that will be passed to midprocess # - store arguments to a json and pass path to json as last argument + # - pass environments to set json_data = { - "args": self.launch_args + "args": self.launch_args, + "env": self.kwargs.pop("env", {}) } # Create temp file json_temp = tempfile.NamedTemporaryFile(