Salome HOME
precise error message
[modules/smesh.git] / src / SMESH_SWIG / ex12_grid17partition.py
index 4458c48f009cd21b1319234fbcc289f93b25a4e6..ca95b25de24992f8733ff130bb628fa9eca390d8 100644 (file)
@@ -1,4 +1,3 @@
-#! /usr/bin/python
 #  -*- coding: iso-8859-1 -*-
 #  Copyright (C) 2007-2008  CEA/DEN, EDF R&D, OPEN CASCADE
 #
@@ -117,6 +116,8 @@ piece_id = addToStudy(piece, "ex12_grid17partition")
 # Meshing
 # =======
 
+smesh.SetCurrentStudy(salome.myStudy)
+
 # Create a hexahedral mesh
 # ------------------------