diff --git a/src/pyedb/dotnet/edb.py b/src/pyedb/dotnet/edb.py index e8129f3787..3c31a315bc 100644 --- a/src/pyedb/dotnet/edb.py +++ b/src/pyedb/dotnet/edb.py @@ -1527,12 +1527,11 @@ def import_gds_file( ``True`` when successful, ``False`` when failed. """ - if tech_file or map_file: - control_file_temp = os.path.join(tempfile.gettempdir(), os.path.split(inputGDS)[-1][:-3] + "xml") - ControlFile(xml_input=control_file, tecnhology=tech_file, layer_map=map_file).write_xml(control_file_temp) - elif tech_file: + if not is_linux and tech_file: self.logger.error("Technology files are supported only in Linux. Use control file instead.") return False + control_file_temp = os.path.join(tempfile.gettempdir(), os.path.split(inputGDS)[-1][:-3] + "xml") + ControlFile(xml_input=control_file, tecnhology=tech_file, layer_map=map_file).write_xml(control_file_temp) if self.import_layout_pcb( inputGDS, working_dir=WorkDir,