From: André Ribes Date: Fri, 4 May 2012 09:06:06 +0000 (+0200) Subject: Correction list UserDataInit X-Git-Tag: V6_5_0^2~1 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=6dcf9f1fbe1aac3de75ee89c0afcc4fb5e24c2d6;p=modules%2Fadao.git Correction list UserDataInit --- diff --git a/src/daEficas/generator_adao.py b/src/daEficas/generator_adao.py index b826729..d31df64 100644 --- a/src/daEficas/generator_adao.py +++ b/src/daEficas/generator_adao.py @@ -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"