Draft: temporary fix for regression introduced by previous commit

This commit is contained in:
Yorik van Havre
2017-09-17 14:42:31 -03:00
parent 851e0bfd89
commit 2db155a0c2

View File

@@ -55,15 +55,16 @@ if FreeCAD.GuiUp:
from PySide import QtCore
from PySide.QtCore import QT_TRANSLATE_NOOP
gui = True
from DraftTools import translate
#from DraftGui import translate
else:
def QT_TRANSLATE_NOOP(ctxt,txt):
return txt
def translate(ctx,txt):
return txt
#print("FreeCAD Gui not present. Draft module will have some features disabled.")
gui = False
def translate(ctx,txt):
return txt
arrowtypes = ["Dot","Circle","Arrow","Tick"]
#---------------------------------------------------------------------------