Merge pull request #4740 from BigRoy/extract_burnin_fix_env_pythonhome

This commit is contained in:
Milan Kolar 2023-04-03 17:59:12 +02:00 committed by GitHub
commit 852f6fedd0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 9 additions and 9 deletions

View file

@ -170,11 +170,13 @@ def clean_envs_for_openpype_process(env=None):
"""
if env is None:
env = os.environ
return {
key: value
for key, value in env.items()
if key not in ("PYTHONPATH",)
}
# Exclude some environment variables from a copy of the environment
env = env.copy()
for key in ["PYTHONPATH", "PYTHONHOME"]:
env.pop(key, None)
return env
def run_openpype_process(*args, **kwargs):

View file

@ -218,8 +218,7 @@ def get_data_subprocess(config_path, data_type):
log.info("Executing: {}".format(" ".join(args)))
process_kwargs = {
"logger": log,
"env": {}
"logger": log
}
run_openpype_process(*args, **process_kwargs)

View file

@ -336,8 +336,7 @@ class ExtractBurnin(publish.Extractor):
# Run burnin script
process_kwargs = {
"logger": self.log,
"env": {}
"logger": self.log
}
run_openpype_process(*args, **process_kwargs)