From: rnv Date: Tue, 14 May 2019 13:54:09 +0000 (+0300) Subject: Fix for '16926 [CEA 16749] MeshCut Python encoding issue' issue X-Git-Tag: V9_4_0a1~36 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=35b85c05393b11ad62ee6125279750d671a7481a;p=modules%2Fsmesh.git Fix for '16926 [CEA 16749] MeshCut Python encoding issue' issue --- diff --git a/src/Tools/MeshCut/meshcut_plugin.py b/src/Tools/MeshCut/meshcut_plugin.py index 0d06e5804..1aac3b4b7 100644 --- a/src/Tools/MeshCut/meshcut_plugin.py +++ b/src/Tools/MeshCut/meshcut_plugin.py @@ -51,7 +51,7 @@ def MeshCut(context): self.ui.le_origMeshFile.setText(infile) insplit = os.path.splitext(str(infile).encode()) outfile = insplit[0] + '_cut'.encode() + insplit[1] - self.ui.le_cutMeshFile.setText(outfile) + self.ui.le_cutMeshFile.setText(outfile.decode()) pass def setOutputFile(self):