from salome.kernel.studyedit import getActiveStudyId, getStudyEditor
from salome.kernel.services import IDToObject, IDToSObject
+from salome.kernel.deprecation import is_called_by_sphinx
+
try:
- from salome.gui import helper as guihelper
+ if not is_called_by_sphinx():
+ from salome.gui import helper as guihelper
+ pass
+ pass
except:
pass
geompyEnable = True
try:
- import salome
- salome.salome_init()
- import GEOM
- from salome.geom import geomBuilder
- geompy = geomBuilder.New(salome.myStudy)
+ from salome.kernel.deprecation import is_called_by_sphinx
+ if not is_called_by_sphinx():
+ import salome
+ salome.salome_init()
+ import GEOM
+ from salome.geom import geomBuilder
+ geompy = geomBuilder.New(salome.myStudy)
+ pass
+ pass
except:
geompyEnable = False
-
+ pass
class Sketcher: