mirror of
https://github.com/RVC-Boss/GPT-SoVITS.git
synced 2025-06-01 05:09:16 +08:00
修改文件可能不存在的bug
修改文件可能不存在的bug
This commit is contained in:
parent
8ccb0d2eed
commit
049a7213c9
6
webui.py
6
webui.py
@ -16,7 +16,11 @@ if(os.path.exists(tmp)):
|
||||
if(name=="jieba.cache"):continue
|
||||
path="%s/%s"%(tmp,name)
|
||||
delete=os.remove if os.path.isfile(path) else shutil.rmtree
|
||||
delete(path)
|
||||
try:
|
||||
delete(path)
|
||||
except Exception as e:
|
||||
print(str(e))
|
||||
pass
|
||||
import site
|
||||
site_packages_roots = []
|
||||
for path in site.getsitepackages():
|
||||
|
Loading…
x
Reference in New Issue
Block a user