2017-02-23 14:16:30 +08:00
|
|
|
#!/usr/bin/env python3
|
2015-04-02 21:43:35 +08:00
|
|
|
|
2015-09-03 05:48:03 +08:00
|
|
|
import sys, os
|
2015-04-02 21:43:35 +08:00
|
|
|
from glob import glob
|
|
|
|
|
2015-09-03 05:48:03 +08:00
|
|
|
files = glob(os.path.join(sys.argv[1], '*.tmp'))
|
2015-04-02 21:43:35 +08:00
|
|
|
assert(len(files) == 1)
|
|
|
|
|
2016-08-30 14:31:44 +08:00
|
|
|
with open(files[0], 'r') as ifile, open(sys.argv[2], 'w') as ofile:
|
|
|
|
ofile.write(ifile.read())
|