初始提交
This commit is contained in:
19
Project_App_Calendar/cp.py
Normal file
19
Project_App_Calendar/cp.py
Normal file
@@ -0,0 +1,19 @@
|
||||
|
||||
import os
|
||||
import shutil
|
||||
|
||||
src = '.\\Objects\\Pro_App\\Calendar.axf'
|
||||
dst = '..\\output\\日历.axf'
|
||||
elf = '..\\elf_reduce.exe'
|
||||
|
||||
if not os.path.exists(src):
|
||||
print(src+' File Error!!!')
|
||||
else:
|
||||
if os.path.exists(dst):
|
||||
os.remove(dst)
|
||||
if os.path.exists(elf):
|
||||
os.system(elf + ' ' + src + ' ' + dst)
|
||||
else:
|
||||
shutil.copy(src,dst)
|
||||
os.remove(src)
|
||||
print(dst+' File copy success.')
|
Reference in New Issue
Block a user