- updated Tcl commands to make use of either 0 or False for False value or 1 or True for True in case of a parameter with type Bool

This commit is contained in:
Marius Stanciu
2019-12-08 22:11:39 +02:00
committed by Marius
parent facc077493
commit e54dd14e6c
12 changed files with 40 additions and 33 deletions

View File

@@ -79,6 +79,9 @@ class TclCommandMillSlots(TclCommandSignaled):
if 'outname' not in args:
args['outname'] = name + "_mill_slots"
if 'use_thread' in args:
args['use_thread'] = bool(args['use_thread'])
if not obj.slots:
self.raise_tcl_error("The Excellon object has no slots: %s" % name)