This repository has been archived by the owner on Sep 20, 2024. It is now read-only.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Brief description
Give ability to set different environment variables when are prepared on artist machine and on farm.
Description
Added one more dictionary level to environment variables dictionary which is called environment group. Default group is "standard" but is not used until environment data values use it. This gives ability to not change current settings but just extend their usage.
The environment variable group level does NOT apply on general environment variables. General environments are set in
start.py
before openpype cli is used.The new dictionary level can be used before platform specific level. Example:
It won't work if the order is swapped. This will NOT work and the key will be skipped:
It is also NOT possible to combine them at the same level. Only platform specific value will be used:
New parsing function also keeps empty strings. Not sure if it's ok but there is no way how to "unset" environment variable value right now which should be possible, or?
Changes
parse_environments
which parse environmet variables data for passed context"standard"
is default) and platform nameextractenvironment
can have specifiedenvgroup
valueenvgroup
value to"farm"