Salome HOME
0020799: [CEA] Smesh script fails
[modules/smesh.git] / src / SMESH_SWIG / SMESH_test5.py
index 264c1269145e2df5ece60ac5c5385ed4a89f83a0..f80dffc4cb7e8a0829b9a45e6cf9652de4ce62c0 100644 (file)
@@ -1,4 +1,3 @@
-#! /usr/bin/python
 #  -*- coding: iso-8859-1 -*-
 #  Copyright (C) 2007-2008  CEA/DEN, EDF R&D, OPEN CASCADE
 #
@@ -31,6 +30,8 @@ import CORBA
 import os
 import os.path
 
+smesh.SetCurrentStudy(salome.myStudy)
+
 def SetSObjName(theSObj,theName) :
     ok, anAttr = theSObj.FindAttribute("AttributeName")
     if ok: