|
|
@@ -35,7 +35,7 @@ def convert(origin, target): |
|
|
|
print("status:: {0}, output {1}".format(status, output))
|
|
|
|
if status ==0:
|
|
|
|
print("{0} convert {1} Success, origin dat will remove!".format(origin, target))
|
|
|
|
os.remove(origin)
|
|
|
|
os.remove(origin)
|
|
|
|
else:
|
|
|
|
print("{0} convert fail".format(origin))
|
|
|
|
#proc = sp.Popen(args, stdin=sp.PIPE, stdout=sp.PIPE, stderr=sp.PIPE)
|
|
|
@@ -62,4 +62,4 @@ if __name__ == "__main__": |
|
|
|
codec = sys.argv[1]
|
|
|
|
# timeout=sys.argv[2]
|
|
|
|
print("codec:: {0}".format(codec))
|
|
|
|
list_folder(DAT_FOLDER, TARGET_FOLDER, codec)
|
|
|
|
list_folder(DAT_FOLDER, TARGET_FOLDER, codec) |