mirror of
https://github.com/RVC-Boss/GPT-SoVITS.git
synced 2025-04-26 11:36:35 +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
c69284e88b
commit
1a8145256d
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