From 9386da7b5a07a9cc2075df7fa8e3a3de2c1b8636 Mon Sep 17 00:00:00 2001 From: Mario Voigt Date: Fri, 11 Sep 2020 15:18:29 +0200 Subject: [PATCH] fix bug with logic --- extensions/fablabchemnitz/dxfdwgimporter/dxfdwgimporter.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extensions/fablabchemnitz/dxfdwgimporter/dxfdwgimporter.py b/extensions/fablabchemnitz/dxfdwgimporter/dxfdwgimporter.py index be9d5c66..cf16c971 100644 --- a/extensions/fablabchemnitz/dxfdwgimporter/dxfdwgimporter.py +++ b/extensions/fablabchemnitz/dxfdwgimporter/dxfdwgimporter.py @@ -232,7 +232,7 @@ class DXFDWGImport(inkex.Effect): if self.options.oda_skip_dxf_to_dxf: #if true we need to move the file to simulate "processed" shutil.move(os.path.join(temp_input_dir, Path(inputfile).name), os.path.join(temp_output_dir, Path(inputfile).name)) - if self.options.oda_keepconverted_dxf and inputfile_ending != ".dxf": #if the input file already was DXF we don't need to make another copy + if self.options.oda_keepconverted_dxf: shutil.copy2(dxf_file, os.path.join(os.path.dirname(inputfile), outputfilebase + "_oda.dxf")) # complete target filename given # Preprocessing DXF to DXF (entity filter) by using ezdxf the first time