清除以前创建的配置文件

This commit is contained in:
pengtao 2019-10-14 12:08:38 +08:00
parent 43089ab135
commit d5d1af4056

View File

@ -7,7 +7,7 @@ from ops.mmysql import MysqlBase
import time
from config.config import args
log = logging.getLogger(__name__)
import os
class Build_Gamelog_Config():
def __init__(self):
@ -36,6 +36,8 @@ class Build_Gamelog_Config():
return out
def build_config(self, data):
if os.path.isfile(self.filename):
os.remove(self.filename)
start = "<?php"
end = ");"
content = ""