mirror of
https://github.com/xszyou/Fay.git
synced 2026-03-12 17:51:28 +08:00
今天星期三
+ 优化UE反复重连系统资源占用太高的问题; + 自动控制是否启动面板播放; + 自动删除运行日志;
This commit is contained in:
9
main.py
9
main.py
@@ -30,10 +30,19 @@ def __clear_songs():
|
||||
if file_name.endswith('.mp3'):
|
||||
os.remove('./songs/' + file_name)
|
||||
|
||||
def __clear_logs():
|
||||
if not os.path.exists("./logs"):
|
||||
os.mkdir("./logs")
|
||||
for file_name in os.listdir('./logs'):
|
||||
if file_name.endswith('.log'):
|
||||
os.remove('./logs/' + file_name)
|
||||
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
__clear_samples()
|
||||
__clear_songs()
|
||||
__clear_logs()
|
||||
config_util.load_config()
|
||||
dbstatus = os.path.exists("fay.db")
|
||||
if(dbstatus == False):
|
||||
|
||||
Reference in New Issue
Block a user