diff --git a/Musicreater.py b/Musicreater.py index 42b4129..1ffe08f 100644 --- a/Musicreater.py +++ b/Musicreater.py @@ -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') diff --git a/languages/__pycache__/zhCN.cpython-38.pyc b/languages/__pycache__/zhCN.cpython-38.pyc index e9486cc..e85ce7c 100644 Binary files a/languages/__pycache__/zhCN.cpython-38.pyc and b/languages/__pycache__/zhCN.cpython-38.pyc differ diff --git a/msctspt/__pycache__/bdxOpera_CP.cpython-38.pyc b/msctspt/__pycache__/bdxOpera_CP.cpython-38.pyc index 1b65f77..d7ab740 100644 Binary files a/msctspt/__pycache__/bdxOpera_CP.cpython-38.pyc and b/msctspt/__pycache__/bdxOpera_CP.cpython-38.pyc differ diff --git a/msctspt/__pycache__/bugReporter.cpython-38.pyc b/msctspt/__pycache__/bugReporter.cpython-38.pyc index 7b25111..dd65dd4 100644 Binary files a/msctspt/__pycache__/bugReporter.cpython-38.pyc and b/msctspt/__pycache__/bugReporter.cpython-38.pyc differ diff --git a/msctspt/__pycache__/threadOpera.cpython-38.pyc b/msctspt/__pycache__/threadOpera.cpython-38.pyc index 28ee5a6..8dee637 100644 Binary files a/msctspt/__pycache__/threadOpera.cpython-38.pyc and b/msctspt/__pycache__/threadOpera.cpython-38.pyc differ diff --git a/msctspt/__pycache__/transfer.cpython-38.pyc b/msctspt/__pycache__/transfer.cpython-38.pyc index bba07b0..ab6bd2b 100644 Binary files a/msctspt/__pycache__/transfer.cpython-38.pyc and b/msctspt/__pycache__/transfer.cpython-38.pyc differ diff --git a/nmcsup/__pycache__/const.cpython-38.pyc b/nmcsup/__pycache__/const.cpython-38.pyc index 1a84c63..413cbaa 100644 Binary files a/nmcsup/__pycache__/const.cpython-38.pyc and b/nmcsup/__pycache__/const.cpython-38.pyc differ diff --git a/nmcsup/__pycache__/log.cpython-38.pyc b/nmcsup/__pycache__/log.cpython-38.pyc index f306c5a..328ec64 100644 Binary files a/nmcsup/__pycache__/log.cpython-38.pyc and b/nmcsup/__pycache__/log.cpython-38.pyc differ diff --git a/nmcsup/__pycache__/nmcreader.cpython-38.pyc b/nmcsup/__pycache__/nmcreader.cpython-38.pyc index 4665732..4e9e9b0 100644 Binary files a/nmcsup/__pycache__/nmcreader.cpython-38.pyc and b/nmcsup/__pycache__/nmcreader.cpython-38.pyc differ diff --git a/nmcsup/__pycache__/trans.cpython-38.pyc b/nmcsup/__pycache__/trans.cpython-38.pyc index 1cc31a6..37eb2de 100644 Binary files a/nmcsup/__pycache__/trans.cpython-38.pyc and b/nmcsup/__pycache__/trans.cpython-38.pyc differ diff --git a/nmcsup/__pycache__/vers.cpython-38.pyc b/nmcsup/__pycache__/vers.cpython-38.pyc index 129fa60..d24794b 100644 Binary files a/nmcsup/__pycache__/vers.cpython-38.pyc and b/nmcsup/__pycache__/vers.cpython-38.pyc differ diff --git a/nmcsup/log.py b/nmcsup/log.py index babfcfd..a59003e 100644 --- a/nmcsup/log.py +++ b/nmcsup/log.py @@ -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/'):