Update openpype/hosts/maya/plugins/publish/validate_scene_set_workspace.py

Co-authored-by: Toke Jepsen <tokejepsen@gmail.com>
This commit is contained in:
Petr Kalis 2024-01-25 13:31:12 +01:00 committed by GitHub
parent 277fcd82fb
commit b783fae8e0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -45,6 +45,6 @@ class ValidateSceneSetWorkspace(pyblish.api.ContextPlugin):
if not is_subdir(scene_name, root_dir):
raise PublishValidationError(
"Maya workspace is not set correctly.\n\n"
f"`{os.path.dirname(scene_name)}` is not in `{root_dir}`.\n\n"
f"Current workfile `{scene_name}` is not inside the current Maya project root directory `{root_dir}`.\n\n"
"Please use Workfile app to re-save."
)