mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-01 16:34:53 +01:00
use safer option to format template path
This commit is contained in:
parent
aaeaa1e7f0
commit
c6b6ca1e3c
1 changed files with 4 additions and 1 deletions
|
|
@ -1097,9 +1097,12 @@ def _get_host_config_data(templates, template_data):
|
|||
|
||||
"""
|
||||
for template in templates:
|
||||
formatted_path = StringTemplate.format_strict_template(
|
||||
formatted_path = StringTemplate.format_template(
|
||||
template, template_data
|
||||
)
|
||||
if not formatted_path.solved:
|
||||
continue
|
||||
|
||||
path = os.path.abspath(formatted_path)
|
||||
if os.path.exists(path):
|
||||
return {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue