清除以前创建的配置文件
This commit is contained in:
parent
43089ab135
commit
d5d1af4056
@ -7,7 +7,7 @@ from ops.mmysql import MysqlBase
|
|||||||
import time
|
import time
|
||||||
from config.config import args
|
from config.config import args
|
||||||
log = logging.getLogger(__name__)
|
log = logging.getLogger(__name__)
|
||||||
|
import os
|
||||||
|
|
||||||
class Build_Gamelog_Config():
|
class Build_Gamelog_Config():
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
@ -36,6 +36,8 @@ class Build_Gamelog_Config():
|
|||||||
return out
|
return out
|
||||||
|
|
||||||
def build_config(self, data):
|
def build_config(self, data):
|
||||||
|
if os.path.isfile(self.filename):
|
||||||
|
os.remove(self.filename)
|
||||||
start = "<?php"
|
start = "<?php"
|
||||||
end = ");"
|
end = ");"
|
||||||
content = ""
|
content = ""
|
||||||
|
Loading…
x
Reference in New Issue
Block a user