summaryrefslogtreecommitdiffstats
path: root/abs/core/LinHES-system/gen_game_xml.py
diff options
context:
space:
mode:
authorBritney Fransen <brfransen@gmail.com>2014-11-25 18:39:03 (GMT)
committerBritney Fransen <brfransen@gmail.com>2014-11-25 18:39:03 (GMT)
commit4b2977c4685b18bed19cea1070a2ff8deb1a753a (patch)
tree28831b350e877c1f404d75a8c143a33d12db451b /abs/core/LinHES-system/gen_game_xml.py
parent620c13ec6d5379ed4aa270f2ced3a19946f4b91c (diff)
downloadlinhes_pkgbuild-4b2977c4685b18bed19cea1070a2ff8deb1a753a.zip
linhes_pkgbuild-4b2977c4685b18bed19cea1070a2ff8deb1a753a.tar.gz
linhes_pkgbuild-4b2977c4685b18bed19cea1070a2ff8deb1a753a.tar.bz2
LinHES-system: gen_game_xml.py & gen_lib_xml.py: add all .conf snippets not just the last
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()