diff options
author | Peng Wu <alexepico@gmail.com> | 2011-07-27 16:05:52 +0800 |
---|---|---|
committer | Peng Wu <alexepico@gmail.com> | 2011-07-27 16:05:52 +0800 |
commit | 0128ad50d1615c4fa8ff969d9d214029217a9759 (patch) | |
tree | 83cf653c2cfbcd97bc7d5d435e1c9b574763ed30 /lib | |
parent | 2575950b486c9716174a14a8b5ad8c04fa086a14 (diff) | |
download | trainer-0128ad50d1615c4fa8ff969d9d214029217a9759.tar.gz trainer-0128ad50d1615c4fa8ff969d9d214029217a9759.tar.xz trainer-0128ad50d1615c4fa8ff969d9d214029217a9759.zip |
fixes generate.py
Diffstat (limited to 'lib')
-rw-r--r-- | lib/myconfig.py | 3 | ||||
-rw-r--r-- | lib/utils.py | 3 |
2 files changed, 5 insertions, 1 deletions
diff --git a/lib/myconfig.py b/lib/myconfig.py index d41425a..f40d2a4 100644 --- a/lib/myconfig.py +++ b/lib/myconfig.py @@ -78,6 +78,9 @@ class MyConfig: def getMaximumIncreaseRatesAllowed(self): return 3. + def getReportPostfix(self): + return '.report' + def getSegmentPostfix(self): return '.segmented' diff --git a/lib/utils.py b/lib/utils.py index 58d31c4..a0d23a1 100644 --- a/lib/utils.py +++ b/lib/utils.py @@ -1,3 +1,4 @@ +import io import os import json from myconfig import MyConfig @@ -34,7 +35,7 @@ def write_file(outfile, data): def get_file_length(infile): f = open(infile, 'r') - f.seek(0, whence=io.SEEK_END) + f.seek(0, io.SEEK_END) length = f.tell() f.close() return length |