]> SALOME platform Git repositories - modules/adao.git/commitdiff
Salome HOME
Correction list UserDataInit
authorAndré Ribes <andre.ribes@edf.fr>
Fri, 4 May 2012 09:06:06 +0000 (11:06 +0200)
committerAndré Ribes <andre.ribes@edf.fr>
Fri, 4 May 2012 09:06:06 +0000 (11:06 +0200)
src/daEficas/generator_adao.py

index b8267291b8f17d915bd7333cc1561dbf92143fc2..d31df645ff70c466ed6bb562851bd3872523eedd 100644 (file)
@@ -184,8 +184,11 @@ class AdaoGenerator(PythonGenerator):
       self.text_da += "Init_config['From'] = 'Script'\n"
       self.text_da += "Init_config['Data'] = '" + init_file_data + "'\n"
       self.text_da += "Init_config['Target'] = ["
-      for target in init_target_list:
-        self.text_da += "'" + target + "',"
+      if type(init_target_list) is type("str"):
+        self.text_da +=  "'" + init_target_list + "',"
+      else:
+        for target in init_target_list:
+          self.text_da += "'" + target + "',"
       self.text_da += "]\n"
       self.text_da += "study_config['UserDataInit'] = Init_config\n"