From 0ce24bff92d2e098698ed12ab7a423dcb60f53d6 Mon Sep 17 00:00:00 2001 From: CaryXiong Date: Thu, 9 Jun 2022 16:21:08 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B0=8F=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- AutoInstaller/MSCT Auto Installer.py | 4 ++-- Musicreater.New.update.py | 4 ---- 《作者的自我激励》.py | 3 +-- 3 files changed, 3 insertions(+), 8 deletions(-) diff --git a/AutoInstaller/MSCT Auto Installer.py b/AutoInstaller/MSCT Auto Installer.py index 0c32194..9b51360 100644 --- a/AutoInstaller/MSCT Auto Installer.py +++ b/AutoInstaller/MSCT Auto Installer.py @@ -214,6 +214,6 @@ You can now open Musicreater.PYC in the directory of ./Musicreater to run Musicr if platform == "linux": - srun("python3 ./Musicreater/补全库.pyc") + srun("python3 -m pip install -r ./Musicreater/requirements.txt -i https://pypi.tuna.tsinghua.edu.cn/simple/") elif platform == "win32": - srun("python ./Musicreater/补全库.pyc") + srun("pip install -r ./Musicreater/requirements.txt -i https://pypi.tuna.tsinghua.edu.cn/simple/") diff --git a/Musicreater.New.update.py b/Musicreater.New.update.py index 91c17ba..e3beacd 100644 --- a/Musicreater.New.update.py +++ b/Musicreater.New.update.py @@ -113,10 +113,6 @@ class MainWindow(wx.Frame): # 载入参量 注意!图标将不被载入参数 - self.__root = tk.Tk() - '''窗口根''' - - self.menuWidgets = menuWidget '''菜单设定项''' diff --git a/《作者的自我激励》.py b/《作者的自我激励》.py index c8e156e..5be2bdf 100644 --- a/《作者的自我激励》.py +++ b/《作者的自我激励》.py @@ -1,13 +1,12 @@ # -*- conding: utf8 -*- import os -from msctspt.funcOpera import keepart m = 0 for path, dir_list, file_list in os.walk(r"./"): for file_name in file_list: - if keepart(file_name, '.', None) == '.py': + if file_name.endswith('.py'): file = os.path.join(path, file_name) print("得到文件名:" + str(file)) for i in open(file, 'r', encoding="utf-8"):