- updated the join_geometry and join_excellon Tcl commands format to follow the format of other commands

This commit is contained in:
Marius Stanciu
2022-01-31 20:39:30 +02:00
committed by Marius
parent b64c11885a
commit 7306e7ada1
6 changed files with 49 additions and 31 deletions

View File

@@ -1285,7 +1285,7 @@ class ExcellonObject(FlatCAMObj, Excellon):
self.build_ui()
@staticmethod
def merge(exc_list, exc_final, decimals=None, fuse_tools=True):
def merge(exc_list, exc_final, decimals=None, fuse_tools=True, log=None):
"""
Merge Excellon objects found in exc_list parameter into exc_final object.
Options are always copied from source .
@@ -1330,7 +1330,8 @@ class ExcellonObject(FlatCAMObj, Excellon):
try:
exc_final.options[option] = deepcopy(exc.options[option])
except Exception:
exc.app.log.warning("Failed to copy option.", option)
if log:
log.warning("Failed to copy option.", option)
for tool in exc.tools:
toolid += 1