summaryrefslogtreecommitdiffstats
path: root/abs/core/LinHES-system/gen_game_xml.py
diff options
context:
space:
mode:
Diffstat (limited to 'abs/core/LinHES-system/gen_game_xml.py')
-rw-r--r--abs/core/LinHES-system/gen_game_xml.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/abs/core/LinHES-system/gen_game_xml.py b/abs/core/LinHES-system/gen_game_xml.py
index e5d9afe..611bed5 100644
--- a/abs/core/LinHES-system/gen_game_xml.py
+++ b/abs/core/LinHES-system/gen_game_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_game_xml: reading in %s" %conf_file
f=open(conf_file,'r')
- lines=f.readlines()
+ line=f.readlines()
f.close()
except:
print " gen_game_xml: Couldn't open %s for reading" %conf_file
print " Exiting"
sys.exit(0)
+ lines.extend(line)
if len(file_list) == 0:
print " gen_game_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()