def ImportComponentGUI(ComponentName):
libName = "lib" + ComponentName + "_Swig"
command = "from " + libName + " import *"
- exec ( command )
+ exec (command, globals())
constructor = ComponentName + "GUI_Swig()"
command = "gui = " + constructor
- exec ( command )
+ exec (command, globals())
return gui
#--------------------------------------------------------------------------
aListOfOpenStudies = myStudyManager.GetOpenStudies();
myStudy = None;
if len(aListOfOpenStudies) == 0 :
- myStudy = myStudyManager.NewStudy("Study1")
+ myStudy = myStudyManager.NewStudy("étude")
else:
myStudyName = aListOfOpenStudies[0]
myStudy = myStudyManager.GetStudyByName(myStudyName)
myStudyName = myStudy._get_Name()
myStudyId = myStudy._get_StudyId()
-#print myStudyId
+# print(myStudyId)