def restore_config_file():
os.remove(zmirror_file('config.py'))
os.remove(zmirror_file('custom_func.py'))
if os.path.exists(zmirror_file('config.py._unittest_raw')):
shutil.move(zmirror_file('config.py._unittest_raw'), zmirror_file('config.py'))
if os.path.exists(zmirror_file('custom_func.py._unittest_raw')):
shutil.move(zmirror_file('custom_func.py._unittest_raw'), zmirror_file('custom_func.py'))
try:
os.remove(zmirror_file('ip_whitelist.txt'))
except:
pass
try:
os.remove(zmirror_file('ip_whitelist.log'))
except:
pass
try:
os.remove(zmirror_file('automatic_domains_whitelist.log'))
except:
pass
评论列表
文章目录