Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow Env Vars in Path Descriptor Version Spec #780

Merged
merged 1 commit into from Aug 11, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
3 changes: 3 additions & 0 deletions python/tank/descriptor/io_descriptor/path.py
Expand Up @@ -92,6 +92,9 @@ def __init__(self, descriptor_dict, sg_connection, bundle_type):
# non-required for finding the code)
self._version = descriptor_dict.get("version") or "Undefined"

# Resolve environment variables in the version
self._version = os.path.expandvars(self._version)

geffrak marked this conversation as resolved.
Show resolved Hide resolved
# if there is a name defined in the descriptor dict then lets use
# this, otherwise we'll fall back to the folder name:
self._name = descriptor_dict.get("name")
Expand Down