update
This commit is contained in:
@@ -3,7 +3,7 @@ import sysconfig
|
||||
|
||||
|
||||
def set_torch():
|
||||
torch_path = os.path.join(sysconfig.get_paths()["purelib"], "torch\\lib")
|
||||
torch_path = os.path.join(sysconfig.get_paths()["purelib"], f"torch{os.sep}lib")
|
||||
paths = os.environ.get("PATH", "")
|
||||
if os.path.exists(torch_path):
|
||||
print(f"torch found: {torch_path}")
|
||||
|
||||
Reference in New Issue
Block a user