mirror of
https://github.com/RVC-Boss/GPT-SoVITS.git
synced 2025-04-06 03:57:44 +08:00
bugfix for import local tools module failed when sys.path have been some tools module e.g. python=3.10.x
This commit is contained in:
parent
e04b3f6d6b
commit
9d3b868464
0
tools/__init__.py
Normal file
0
tools/__init__.py
Normal file
4
webui.py
4
webui.py
@ -1,6 +1,8 @@
|
|||||||
import os,shutil,sys,pdb,re
|
import os,shutil,sys,pdb,re
|
||||||
now_dir = os.getcwd()
|
now_dir = os.getcwd()
|
||||||
sys.path.append(now_dir)
|
print(now_dir)
|
||||||
|
sys.path.insert(0, now_dir)
|
||||||
|
print(sys.path)
|
||||||
import json,yaml,warnings,torch
|
import json,yaml,warnings,torch
|
||||||
import platform
|
import platform
|
||||||
import psutil
|
import psutil
|
||||||
|
Loading…
x
Reference in New Issue
Block a user