依赖修复 合并“移除site-packages”和“移除 python/Script”按钮
This commit is contained in:
parent
aba55813d2
commit
60d2f99675
2 changed files with 29 additions and 42 deletions
12
launcher.py
12
launcher.py
|
@ -80,14 +80,14 @@ class Api:
|
|||
site_packages_path = Path("./python/Lib/site-packages")
|
||||
if site_packages_path.exists():
|
||||
rmtree(site_packages_path)
|
||||
return "移除成功"
|
||||
return "site-packages目录移除成功"
|
||||
return "python\\Lib\\site-packages目录不存在"
|
||||
|
||||
def rm_python_script(self):
|
||||
python_script_path = Path("./python/Scripts")
|
||||
if python_script_path.exists():
|
||||
rmtree(python_script_path)
|
||||
return "移除成功"
|
||||
def rm_python_scripts(self):
|
||||
python_scripts_path = Path("./python/Scripts")
|
||||
if python_scripts_path.exists():
|
||||
rmtree(python_scripts_path)
|
||||
return "Scripts目录移除成功"
|
||||
return "python\\Scripts目录不存在"
|
||||
|
||||
def run(self, command, cwd=None):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue