diff options
| author | Peng Wu <alexepico@gmail.com> | 2012-10-22 17:42:04 +0800 |
|---|---|---|
| committer | Peng Wu <alexepico@gmail.com> | 2012-10-22 17:42:04 +0800 |
| commit | 3d11ee5e5dc69cfd5fc62bab43461250f037beb5 (patch) | |
| tree | 631d379c3d220e5a15c8b93f9791b9a0b8cb0cdd /lib | |
| parent | 244164ed4f3f02b946114cd9cc81af62f5353172 (diff) | |
| download | trainer-3d11ee5e5dc69cfd5fc62bab43461250f037beb5.tar.gz trainer-3d11ee5e5dc69cfd5fc62bab43461250f037beb5.tar.xz trainer-3d11ee5e5dc69cfd5fc62bab43461250f037beb5.zip | |
use utils.copyfile
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/utils.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/utils.py b/lib/utils.py index a0d23a1..e734ee9 100644 --- a/lib/utils.py +++ b/lib/utils.py @@ -1,6 +1,7 @@ import io import os import json +import shutil from myconfig import MyConfig @@ -40,6 +41,10 @@ def get_file_length(infile): f.close() return length +def copyfile(src, dst): + print('copying from ' + src + ' to ' + dst) + shutil.copyfile(src, dst) + #JSON Load/Store def load_status(infile): |
