Browse Source

changed locationmerge so they retain orig. order

topsykrett 9 years ago
parent
commit
7a5c62e772
1 changed files with 1 additions and 1 deletions
  1. 1 1
      txtmerge.py

+ 1 - 1
txtmerge.py

@@ -13,7 +13,7 @@ oname = str(sys.argv[2])
 
 ofile = io.open(oname, 'w', encoding='utf-16', newline='\r\n')
 
-for iname in os.listdir( idir ):
+for iname in sorted(os.listdir( idir )):
     ifile = io.open(os.path.join(idir,iname), 'rt', encoding='utf-8')
     text = ifile.read()
     ofile.write(text)