From a436e3e71b70af2948468551aa63e7e99a377cce Mon Sep 17 00:00:00 2001 From: Christophe Bourcier Date: Thu, 7 Dec 2017 14:44:58 +0100 Subject: [PATCH] Fix ExportToGEOM tmp file name on Windows to make the dumped python correctly executed --- src/ConnectorPlugin/ConnectorPlugin_ExportFeature.py | 2 ++ 1 file changed, 2 insertions(+) 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 -- 2.39.2