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'))
|
2021-09-01 00:55:01 +08:00
|
|
|
assert len(files) == 1
|
2015-04-02 21:43:35 +08:00
|
|
|
|
2021-03-05 06:02:31 +08:00
|
|
|
with open(files[0]) as ifile, open(sys.argv[2], 'w') as ofile:
|
2016-08-30 14:31:44 +08:00
|
|
|
ofile.write(ifile.read())
|