Update openpype/hosts/nuke/api/lib.py

Co-authored-by: Jakub Trllo <43494761+iLLiCiTiT@users.noreply.github.com>
This commit is contained in:
Jakub Ježek 2023-08-08 17:04:03 +02:00 committed by GitHub
parent 4af2ddaf49
commit ecbf263feb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2212,7 +2212,7 @@ Reopening Nuke should synchronize these paths and resolve any discrepancies.
# use regex to find env var in template with format {ENV_VAR}
# this way we make sure only template used env vars are included
env_var_regex = r"\{([A-Z_]+)\}"
env_var_regex = r"\{([A-Z0-9_]+)\}"
env_var = re.findall(env_var_regex, config_template)
if env_var:
included_vars.append(env_var[0])