Skip to content

Commit

Permalink
Draft: only try to import FreeCADGui, coin and QtGui if FreeCAD.GuiUp…
Browse files Browse the repository at this point in the history
… is true
  • Loading branch information
wwmayer committed Jan 15, 2020
1 parent e52bd17 commit 3af5139
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/Mod/Draft/draftutils/gui_utils.py
Expand Up @@ -34,19 +34,21 @@


import FreeCAD
import FreeCADGui
from .utils import _msg
from .utils import _wrn
# from .utils import _log
from .utils import _tr
from .utils import getParam
from pivy import coin
from PySide import QtGui
# from PySide import QtSvg # for load_texture
import os
import math
import six

if FreeCAD.GuiUp:
import FreeCADGui
from pivy import coin
from PySide import QtGui
# from PySide import QtSvg # for load_texture


def get_3d_view():
"""Return the current 3D view.
Expand Down

0 comments on commit 3af5139

Please sign in to comment.