|
@@ -8,16 +8,16 @@ import re
|
|
|
import io
|
|
|
import xml.etree.ElementTree as ET
|
|
|
|
|
|
-assert len(sys.argv) == 3, "usage:\ntxtmerge.py <input_dir> <output_file_name>"
|
|
|
-idir = str(sys.argv[1])
|
|
|
-oname = str(sys.argv[2])
|
|
|
+assert len(sys.argv) == 4, "usage:\ntxtmerge.py <input_file_name> <input_dir> <output_file_name>"
|
|
|
+iname = str(sys.argv[1])
|
|
|
+idir = str(sys.argv[2])
|
|
|
+oname = str(sys.argv[3])
|
|
|
|
|
|
# read the project xml file first
|
|
|
# let's do this later in order to implement directory structure
|
|
|
-tree = ET.parse('mod_wlife.qproj')
|
|
|
+tree = ET.parse(iname)
|
|
|
root = tree.getroot()
|
|
|
|
|
|
-
|
|
|
ofile = io.open(oname, 'w', encoding='utf-16', newline='\r\n')
|
|
|
|
|
|
for location in root.iter('Location'):
|