From: Christophe Bourcier Date: Thu, 7 Dec 2017 13:44:58 +0000 (+0100) Subject: Fix ExportToGEOM tmp file name on Windows to make the dumped python correctly executed X-Git-Tag: V_2.10.0RC~77 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=a436e3e71b70af2948468551aa63e7e99a377cce;p=modules%2Fshaper.git Fix ExportToGEOM tmp file name on Windows to make the dumped python correctly executed --- diff --git a/src/ConnectorPlugin/ConnectorPlugin_ExportFeature.py b/src/ConnectorPlugin/ConnectorPlugin_ExportFeature.py index b5d42602b..b529eac73 100644 --- a/src/ConnectorPlugin/ConnectorPlugin_ExportFeature.py +++ b/src/ConnectorPlugin/ConnectorPlugin_ExportFeature.py @@ -36,6 +36,8 @@ def getTmpFileName(ext): tempdir = tempfile.gettempdir() tmp_file = tempfile.NamedTemporaryFile(suffix=".%s"%ext, prefix='shaper_', dir=tempdir, delete=False) tmp_filename = tmp_file.name + if os.name == "nt": + tmp_filename.replace("\\", "/") return tmp_filename ## @ingroup Plugins