- converted from Python2 code to Python3 code
- in camlib.py, CNCJob class -> generate_from_excellon_by_tool() was failing in the line to sort the tools due of been unable to compare between dict's. I replaced that section.
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
from ObjectCollection import *
|
||||
import TclCommand
|
||||
from tclCommands.TclCommand import TclCommandSignaled
|
||||
|
||||
|
||||
class TclCommandAlignDrill(TclCommand.TclCommandSignaled):
|
||||
class TclCommandAlignDrill(TclCommandSignaled):
|
||||
"""
|
||||
Tcl shell command to create excellon with drills for aligment.
|
||||
"""
|
||||
@@ -180,7 +180,7 @@ class TclCommandAlignDrill(TclCommand.TclCommandSignaled):
|
||||
name + "_aligndrill",
|
||||
alligndrill_init_me)
|
||||
|
||||
except Exception, e:
|
||||
except Exception as e:
|
||||
return "Operation failed: %s" % str(e)
|
||||
|
||||
else:
|
||||
@@ -195,7 +195,7 @@ class TclCommandAlignDrill(TclCommand.TclCommandSignaled):
|
||||
px = dist
|
||||
py = dist
|
||||
obj.app.new_object("excellon", name + "_alligndrill", alligndrill_init_me)
|
||||
except Exception, e:
|
||||
except Exception as e:
|
||||
return "Operation failed: %s" % str(e)
|
||||
|
||||
return 'Ok'
|
||||
|
||||
Reference in New Issue
Block a user