Path: remove unnecessary imports
This commit is contained in:
@@ -35,7 +35,6 @@ from PathScripts.PathUtils import findParentJob
|
||||
if FreeCAD.GuiUp:
|
||||
import FreeCADGui
|
||||
from PySide import QtCore
|
||||
# from DraftTools import translate
|
||||
else:
|
||||
def translate(ctxt, txt):
|
||||
return txt
|
||||
@@ -79,7 +78,6 @@ class _CommandSelectLoop:
|
||||
return False
|
||||
|
||||
def Activated(self):
|
||||
# from PathScripts.PathUtils import loopdetect
|
||||
from PathScripts.PathUtils import horizontalEdgeLoop
|
||||
from PathScripts.PathUtils import horizontalFaceLoop
|
||||
sel = FreeCADGui.Selection.getSelectionEx()[0]
|
||||
|
||||
@@ -32,10 +32,6 @@ PathLog.setLevel(PathLog.Level.DEBUG, LOG_MODULE)
|
||||
PathLog.trackModule('PathCollision')
|
||||
FreeCAD.setLogLevel('Path.Area', 0)
|
||||
|
||||
if FreeCAD.GuiUp:
|
||||
import FreeCADGui
|
||||
# from PySide import QtGui
|
||||
|
||||
|
||||
# Qt translation handling
|
||||
def translate(context, text, disambig=None):
|
||||
|
||||
@@ -24,12 +24,10 @@
|
||||
|
||||
import FreeCAD
|
||||
import Part
|
||||
# import Path
|
||||
import PathScripts.PathEngraveBase as PathEngraveBase
|
||||
import PathScripts.PathLog as PathLog
|
||||
import PathScripts.PathOp as PathOp
|
||||
import PathScripts.PathOpTools as PathOpTools
|
||||
# import PathScripts.PathUtil as PathUtil
|
||||
import math
|
||||
|
||||
from PySide import QtCore
|
||||
@@ -54,7 +52,6 @@ def toolDepthAndOffset(width, extraDepth, tool):
|
||||
tan = math.tan(math.radians(angle / 2))
|
||||
|
||||
toolDepth = 0 if 0 == tan else width / tan
|
||||
# extraDepth = extraDepth
|
||||
depth = toolDepth + extraDepth
|
||||
toolOffset = tool.FlatRadius
|
||||
extraOffset = tool.Diameter / 2 - width if 180 == angle else extraDepth / tan
|
||||
|
||||
@@ -30,7 +30,6 @@ import PathScripts.PathJob as PathJob
|
||||
import PathScripts.PathJobCmd as PathJobCmd
|
||||
import PathScripts.PathJobDlg as PathJobDlg
|
||||
import PathScripts.PathGeom as PathGeom
|
||||
# import PathScripts.PathGui as PathGui
|
||||
import PathScripts.PathGuiInit as PathGuiInit
|
||||
import PathScripts.PathLog as PathLog
|
||||
import PathScripts.PathPreferences as PathPreferences
|
||||
@@ -41,7 +40,6 @@ import PathScripts.PathToolLibraryManager as PathToolLibraryManager
|
||||
import PathScripts.PathUtil as PathUtil
|
||||
import PathScripts.PathUtils as PathUtils
|
||||
import math
|
||||
# import sys
|
||||
import traceback
|
||||
|
||||
from PySide import QtCore, QtGui
|
||||
|
||||
Reference in New Issue
Block a user