diff options
author | Peng Wu <alexepico@gmail.com> | 2011-07-23 17:13:39 +0800 |
---|---|---|
committer | Peng Wu <alexepico@gmail.com> | 2011-07-23 17:13:39 +0800 |
commit | 4e18ee54f475ee6ca588d9504c627a4dfa409645 (patch) | |
tree | d85bba43c17df8465642af0115cb6abe5c111c03 /segment.py | |
parent | abead147cd1eea3ff7ba8b34055374a8ad812464 (diff) | |
download | trainer-4e18ee54f475ee6ca588d9504c627a4dfa409645.tar.gz trainer-4e18ee54f475ee6ca588d9504c627a4dfa409645.tar.xz trainer-4e18ee54f475ee6ca588d9504c627a4dfa409645.zip |
write generate.py in progress
Diffstat (limited to 'segment.py')
-rwxr-xr-x | segment.py | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -57,9 +57,9 @@ def handleOneIndex(indexpath): #begin processing indexfile = open(indexpath, 'r') for oneline in indexfile.readlines(): - (title, textpath) = oneline.split('#') #remove tailing '\n' - textpath = textpath.rstrip(os.linesep) + oneline = oneline.rstrip(os.linesep) + (title, textpath) = oneline.split('#') infile = config.getTextDir() + textpath outfile = config.getTextDir() + textpath + config.getSegmentPostfix() reportfile = config.getTextDir() + textpath + \ |