You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Path templating: decouple from TEMPLATES_ENV_NAME, support arbitrary envs, and expand ${VARS} before {fields}
Summary
The current path templating implementation in path.py is overly coupled to a hard-coded TEMPLATES_ENV_NAME (templates.env) and does not support resolving ${ENV_VARS} (e.g. ${ROOT}) before applying {field} token substitution. This limits flexibility for tool-specific and project-specific path templates and breaks common real-world use cases.
This issue proposes generalizing path templating so that:
Templates can live in any envstack environment (tool-defined, project-scoped, etc.)
${VAR} expansion is performed using envstack’s resolved environment before {field} formatting
The concept of a special “templates env” is deprecated or removed
Path templating: decouple from
TEMPLATES_ENV_NAME, support arbitrary envs, and expand${VARS}before{fields}Summary
The current path templating implementation in
path.pyis overly coupled to a hard-codedTEMPLATES_ENV_NAME(templates.env) and does not support resolving${ENV_VARS}(e.g.${ROOT}) before applying{field}token substitution. This limits flexibility for tool-specific and project-specific path templates and breaks common real-world use cases.${VAR}expansion is performed using envstack’s resolved environment before {field} formattingUse Case
${ROOT},${SHOW}, etc. to be resolved prior to {seq}, {shot}, {version} formattingExample (currently broken):