From 66d9df2f828caa3d91eea6f465237417075b50b9 Mon Sep 17 00:00:00 2001 From: Dun Liang Date: Tue, 5 Oct 2021 19:59:30 +0800 Subject: [PATCH] polish win path order --- python/jittor/__init__.py | 2 +- python/jittor/compiler.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/python/jittor/__init__.py b/python/jittor/__init__.py index c8bf1ac8..853a5833 100644 --- a/python/jittor/__init__.py +++ b/python/jittor/__init__.py @@ -9,7 +9,7 @@ # file 'LICENSE.txt', which is part of this source code package. # *************************************************************** -__version__ = '1.3.0.6' +__version__ = '1.3.0.7' from jittor_utils import lock with lock.lock_scope(): ori_int = int diff --git a/python/jittor/compiler.py b/python/jittor/compiler.py index 8a20b737..a51bb849 100644 --- a/python/jittor/compiler.py +++ b/python/jittor/compiler.py @@ -1092,7 +1092,7 @@ if os.name == 'nt': if path not in win_libpaths: win_libpaths[path] = 1 os.add_dll_directory(path) - os.environ["PATH"] += f";{path};" + os.environ["PATH"] = f";{path};" + os.environ["PATH"] output2.append("-LIBPATH:"+f[2:]) elif ".lib" in f: output2.append(f)