diff options
Diffstat (limited to 'abs/core/LinHES-system/gen_lib_xml.py')
-rw-r--r-- | abs/core/LinHES-system/gen_lib_xml.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/abs/core/LinHES-system/gen_lib_xml.py b/abs/core/LinHES-system/gen_lib_xml.py index 320a84d..1cc4516 100644 --- a/abs/core/LinHES-system/gen_lib_xml.py +++ b/abs/core/LinHES-system/gen_lib_xml.py @@ -24,6 +24,7 @@ class Gen_lib_xml: def read_snippets(self): xml_snippets="" + lines=[] try: os.chdir(self.snippit_dir) except: @@ -35,12 +36,13 @@ class Gen_lib_xml: try: print " gen_lib_xml: reading in %s" %conf_file f=open(conf_file,'r') - lines=f.readlines() + line=f.readlines() f.close() except: print " gen_lib_xml: Couldn't open %s for reading" %conf_file print " Exiting" sys.exit(0) + lines.extend(line) if len(file_list) == 0: print " gen_lib_xml: no conf files found" @@ -114,4 +116,4 @@ def main(): write_xml(new_xml,filename) if __name__ == "__main__": - main()
\ No newline at end of file + main() |