From 84fe7e7c7b1c4f8655c512b7b6a9d18ae7214628 Mon Sep 17 00:00:00 2001 From: Petr Kalis Date: Tue, 27 Jun 2023 15:50:08 +0200 Subject: [PATCH] Revert backward incompatible change of path to template to multiplatform It requires to use `work[root]` to handle multiplatformity. In the case of customer request it needs to be reworked for proper multiplatformity. --- openpype/pipeline/workfile/workfile_template_builder.py | 5 +---- .../schemas/schema_templated_workfile_build.json | 2 +- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/openpype/pipeline/workfile/workfile_template_builder.py b/openpype/pipeline/workfile/workfile_template_builder.py index 42483a302c..e1013b2645 100644 --- a/openpype/pipeline/workfile/workfile_template_builder.py +++ b/openpype/pipeline/workfile/workfile_template_builder.py @@ -13,7 +13,6 @@ about it's progress. import os import re -import platform import collections import copy from abc import ABCMeta, abstractmethod @@ -764,9 +763,7 @@ class AbstractTemplateBuilder(object): "with host '{}'" ).format(task_name, task_type, host_name)) - current_platform = platform.system().lower() - # backward compatibility for single platform version - path = profile["path"].get(current_platform) or profile["path"] + path = profile["path"] # switch to remove placeholders after they are used keep_placeholder = profile.get("keep_placeholder") diff --git a/openpype/settings/entities/schemas/projects_schema/schemas/schema_templated_workfile_build.json b/openpype/settings/entities/schemas/projects_schema/schemas/schema_templated_workfile_build.json index 88e14e5661..7bab28fd88 100644 --- a/openpype/settings/entities/schemas/projects_schema/schemas/schema_templated_workfile_build.json +++ b/openpype/settings/entities/schemas/projects_schema/schemas/schema_templated_workfile_build.json @@ -26,7 +26,7 @@ "key": "path", "label": "Path to template", "type": "path", - "multiplatform": true, + "multiplatform": false, "multipath": false }, {