From 6dcf9f1fbe1aac3de75ee89c0afcc4fb5e24c2d6 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Andr=C3=A9=20Ribes?= Date: Fri, 4 May 2012 11:06:06 +0200 Subject: [PATCH] Correction list UserDataInit --- src/daEficas/generator_adao.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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" -- 2.39.2