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"):