mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-05-31 23:27:43 +00:00
fix PATH addition in windows
should set PATH, not add to the tail the copy of PATH
This commit is contained in:
parent
887c3149e3
commit
07b166bb1b
1 changed files with 1 additions and 1 deletions
|
|
@ -57,7 +57,7 @@ if platform.system() == "Windows":
|
|||
# Python 3.7 (and earlier) searches directories listed in PATH variable.
|
||||
# Make sure that the target CUDA version is at the beginning (important if multiple CUDA versions are
|
||||
# installed on the machine.)
|
||||
os.environ["PATH"] += cuda_bin_dir + os.pathsep + os.environ["PATH"]
|
||||
os.environ["PATH"] = cuda_bin_dir + os.pathsep + os.environ["PATH"]
|
||||
|
||||
if version_info.vs2019 and platform.architecture()[0] == "64bit":
|
||||
if not os.path.isfile("C:\\Windows\\System32\\vcruntime140_1.dll"):
|
||||
|
|
|
|||
Loading…
Reference in a new issue