Salome HOME
projects
/
modules
/
smesh.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
0020623: EDF 1209 SMESH: Load script/execfile add the objects in the wrong study
[modules/smesh.git]
/
src
/
SMESH_SWIG
/
SMESH_test1.py
diff --git
a/src/SMESH_SWIG/SMESH_test1.py
b/src/SMESH_SWIG/SMESH_test1.py
index ebf1347e2f0bdac414ec1ab8c9359cf5a14c02ec..169ca7a4fc898503d14c3238b6bff284c02ec2b4 100644
(file)
--- a/
src/SMESH_SWIG/SMESH_test1.py
+++ b/
src/SMESH_SWIG/SMESH_test1.py
@@
-1,4
+1,3
@@
-#! /usr/bin/python
# -*- coding: iso-8859-1 -*-
# Copyright (C) 2007-2008 CEA/DEN, EDF R&D, OPEN CASCADE
#
@@
-61,6
+60,8
@@
idedge = geompy.addToStudyInFather(face, edge, name)
# ---- SMESH
+smesh.SetCurrentStudy(salome.myStudy)
+
# ---- Init a Mesh with the box
mesh = smesh.Mesh(box, "Meshbox")