From 8ca61623f2b0e0300625bd9f2c57358bd015e1cf Mon Sep 17 00:00:00 2001 From: Tomas Poveda Date: Thu, 4 Feb 2021 20:02:33 +0100 Subject: [PATCH] Fixed bug when trying to open files with special characters --- artella/dccs/maya/plugin.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/artella/dccs/maya/plugin.py b/artella/dccs/maya/plugin.py index 2bd3a82..826c610 100644 --- a/artella/dccs/maya/plugin.py +++ b/artella/dccs/maya/plugin.py @@ -13,12 +13,11 @@ import maya.cmds as cmds import maya.mel as mel -import maya.OpenMaya as OpenMaya import artella from artella import dcc from artella.core.dcc import callback -from artella.core import consts, callbacks, plugins, dccplugin +from artella.core import consts, callbacks, plugins, dccplugin, utils from artella.dccs.maya import utils as maya_utils logger = logging.getLogger('artella') @@ -190,7 +189,7 @@ def _before_open_check(self, maya_file, client_data=None): :param dict client_data: """ - file_path = maya_file.resolvedFullName() + file_path = utils.clean_path(maya_file.resolvedFullName()) if self.is_artella_path(file_path):