mirror of
https://git.salome-platform.org/gitpub/modules/geom.git
synced 2024-11-11 16:19:17 +05:00
Fix test script: correct textures location
This commit is contained in:
parent
9fddcc1f36
commit
4bd9a6f6fe
@ -29,11 +29,10 @@ import GEOM
|
||||
from salome.geom import geomBuilder
|
||||
geompy = geomBuilder.New()
|
||||
|
||||
data_dir = os.getenv('DATA_DIR')
|
||||
if data_dir:
|
||||
texture_1 = geompy.LoadTexture(os.path.join(data_dir, "Textures", "texture1.dat"))
|
||||
texture_2 = geompy.LoadTexture(os.path.join(data_dir, "Textures", "texture2.dat"))
|
||||
texture_3 = geompy.LoadTexture(os.path.join(data_dir, "Textures", "texture3.dat"))
|
||||
data_dir = os.path.join(os.getenv('GEOM_ROOT_DIR'), 'share', 'salome', 'resources', 'geom', 'textures')
|
||||
texture_1 = geompy.LoadTexture(os.path.join(data_dir, "texture1.dat"))
|
||||
texture_2 = geompy.LoadTexture(os.path.join(data_dir, "texture2.dat"))
|
||||
texture_3 = geompy.LoadTexture(os.path.join(data_dir, "texture3.dat"))
|
||||
|
||||
Vertex_1 = geompy.MakeVertex(0, 0, 0)
|
||||
Vertex_2 = geompy.MakeVertex(100, 0, 0)
|
||||
@ -50,4 +49,3 @@ if data_dir:
|
||||
geompy.addToStudy( Vertex_3, "Vertex_3" )
|
||||
geompy.addToStudy( Vertex_4, "Vertex_4" )
|
||||
geompy.addToStudy( Vertex_5, "Vertex_5" )
|
||||
pass
|
||||
|
Loading…
Reference in New Issue
Block a user