mirror of
https://git.salome-platform.org/gitpub/modules/geom.git
synced 2024-12-24 16:30:35 +05:00
PR: improve compatibilty with old scripts
This commit is contained in:
parent
711f404511
commit
5f237094e9
@ -29,6 +29,8 @@
|
||||
import salome
|
||||
from salome.geom import geomBuilder
|
||||
from salome import *
|
||||
import GEOM
|
||||
from salome.geom.geomBuilder import info, PackData, ReadTexture, EnumToLong
|
||||
|
||||
# retrieve GEOM engine in try/except block
|
||||
# to avoid problems in some cases, e.g. when generating documentation
|
||||
@ -43,9 +45,11 @@ try:
|
||||
globals()[k] = getattr( geom, k )
|
||||
pass
|
||||
del k
|
||||
from geomBuilder import ShapeType, GEOM, kind, info, PackData, ReadTexture, EnumToLong
|
||||
ShapeType = geom.ShapeType
|
||||
kind = geom.kind
|
||||
pass
|
||||
except:
|
||||
print "exception in geompy.py"
|
||||
geom = None
|
||||
pass
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user