Draft/Arch: maintain Python 2 compatibility
In order to pass test under Python 2
This commit is contained in:
@@ -22,6 +22,7 @@
|
||||
#* *
|
||||
#***************************************************************************
|
||||
|
||||
from __future__ import print_function
|
||||
import sys
|
||||
import FreeCAD, time
|
||||
if FreeCAD.GuiUp:
|
||||
|
||||
@@ -148,9 +148,8 @@ class CommandFillet(DraftTools.Line):
|
||||
FreeCADGui.addModule("Draft")
|
||||
func = DraftTools.translate("draft", "Create fillet")
|
||||
|
||||
arg = ['arc = DraftFillet.makeFillet(' + _wires + ')',
|
||||
*rems,
|
||||
'Draft.autogroup(arc)',
|
||||
arg = ['arc = DraftFillet.makeFillet(' + _wires + ')'] + rems +\
|
||||
['Draft.autogroup(arc)',
|
||||
'FreeCAD.ActiveDocument.recompute()']
|
||||
DraftGui.todo.delayCommit([(func, arg)])
|
||||
|
||||
|
||||
Reference in New Issue
Block a user