mirror of
https://github.com/RVC-Boss/GPT-SoVITS.git
synced 2025-04-05 04:22:46 +08:00
修改文件可能不存在的bug
修改文件可能不存在的bug
This commit is contained in:
parent
b8ae5a2761
commit
96128d604a
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