mirror of
https://git.salome-platform.org/gitpub/modules/geom.git
synced 2024-11-14 09:38:34 +05:00
Merge from V7_2_BR 09/08/2013
This commit is contained in:
parent
e688f2b77f
commit
b87a6c3f3b
@ -32,8 +32,13 @@ logger = Logger("salome.geom.geomtools", color = termcolor.RED)
|
|||||||
|
|
||||||
from salome.kernel.studyedit import getActiveStudyId, getStudyEditor
|
from salome.kernel.studyedit import getActiveStudyId, getStudyEditor
|
||||||
from salome.kernel.services import IDToObject, IDToSObject
|
from salome.kernel.services import IDToObject, IDToSObject
|
||||||
|
from salome.kernel.deprecation import is_called_by_sphinx
|
||||||
|
|
||||||
try:
|
try:
|
||||||
from salome.gui import helper as guihelper
|
if not is_called_by_sphinx():
|
||||||
|
from salome.gui import helper as guihelper
|
||||||
|
pass
|
||||||
|
pass
|
||||||
except:
|
except:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
@ -47,14 +47,18 @@ Additionnal examples can be found as unit tests in the source code.
|
|||||||
|
|
||||||
geompyEnable = True
|
geompyEnable = True
|
||||||
try:
|
try:
|
||||||
import salome
|
from salome.kernel.deprecation import is_called_by_sphinx
|
||||||
salome.salome_init()
|
if not is_called_by_sphinx():
|
||||||
import GEOM
|
import salome
|
||||||
from salome.geom import geomBuilder
|
salome.salome_init()
|
||||||
geompy = geomBuilder.New(salome.myStudy)
|
import GEOM
|
||||||
|
from salome.geom import geomBuilder
|
||||||
|
geompy = geomBuilder.New(salome.myStudy)
|
||||||
|
pass
|
||||||
|
pass
|
||||||
except:
|
except:
|
||||||
geompyEnable = False
|
geompyEnable = False
|
||||||
|
pass
|
||||||
|
|
||||||
class Sketcher:
|
class Sketcher:
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user