diff --git a/msctspt/__pycache__/bugReporter.cpython-38.pyc b/msctspt/__pycache__/bugReporter.cpython-38.pyc new file mode 100644 index 0000000..d364a83 Binary files /dev/null and b/msctspt/__pycache__/bugReporter.cpython-38.pyc differ diff --git a/msctspt/bugReporter.py b/msctspt/bugReporter.py index be0813c..d224024 100644 --- a/msctspt/bugReporter.py +++ b/msctspt/bugReporter.py @@ -118,7 +118,10 @@ class version: import os if platform == 'win32': import shutil - shutil.rmtree(os.getenv('APPDATA')+'\\Musicreater\\') + try: + shutil.rmtree(os.getenv('APPDATA')+'\\Musicreater\\') + except: + pass; for i in self.libraries: print("安装库:"+i) os.system("python -m pip install "+i+" -i https://pypi.tuna.tsinghua.edu.cn/simple") diff --git a/补全库(请确保以管理员身份运行).py b/补全库(请确保以管理员身份运行).py index aa9047d..8fccb46 100644 --- a/补全库(请确保以管理员身份运行).py +++ b/补全库(请确保以管理员身份运行).py @@ -1,2 +1,2 @@ from msctspt.bugReporter import version -version.installLibraries() \ No newline at end of file +version.installLibraries(version) \ No newline at end of file