没有任何更改

This commit is contained in:
EillesWan 2022-01-23 22:33:41 +08:00
parent f0dedabe1a
commit 0e3eb394ab
12 changed files with 8 additions and 1 deletions

View File

@ -836,9 +836,13 @@ def __main__():
res = note2bdx(fileName, dire, dataset[0]['musics'][NowMusic]['notes'],
dataset[0]['musics'][NowMusic]['set']['ScoreboardName'],
dataset[0]['musics'][NowMusic]['set']['Instrument'], dataset[0]['mainset']['PlayerSelect'])
log('转换结束!\n' + str(res))
tkinter.messagebox.showinfo(READABLETEXT[33], READABLETEXT[124].format(str(res)))
def wsPlay():
from msctspt.transfer import note2webs
spd = tkinter.simpledialog.askfloat(READABLETEXT[34], prompt=READABLETEXT[125], initialvalue='5.0')

View File

@ -14,6 +14,9 @@ main_path = './log/'
position = main_path + time
if not os.path.exists('./log/'):
os.makedirs('./log/')
logger = logging.getLogger(__name__)
logger.setLevel(level=logging.INFO)
handler = logging.FileHandler(position + ".logger")
@ -40,7 +43,7 @@ StrStartTime = str(datetime.datetime.now()).replace(':', '_')[:-7]
"""字符串型的程序开始时间"""
def log(info: str = '', isPrinted: bool = False, isLoggerLibRecord: bool = True):
def log(info: str = '', isPrinted: bool = True, isLoggerLibRecord: bool = True):
# isLoggerLibRecord: 是否同时在logger库中记录
"""将信息连同当前时间载入日志"""
if not os.path.exists('./log/'):