fix PATH addition in windows

should set PATH, not add to the tail the copy of PATH
This commit is contained in:
iperov 2021-06-12 08:15:31 +04:00 committed by Changming Sun
parent 887c3149e3
commit 07b166bb1b

View file

@ -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"):