mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
Merge pull request #4740 from BigRoy/extract_burnin_fix_env_pythonhome
This commit is contained in:
commit
852f6fedd0
3 changed files with 9 additions and 9 deletions
|
|
@ -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):
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue