mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-05-21 21:52:11 +00:00
Fix ImportError in build.py (#6231)
There is a possible ImportError where build.py can import the wrong 'util' package if there are others present in `sys.path` already
This commit is contained in:
parent
df7e2f3c1e
commit
bbb6b416f0
1 changed files with 1 additions and 1 deletions
|
|
@ -18,7 +18,7 @@ from distutils.version import LooseVersion
|
|||
SCRIPT_DIR = os.path.dirname(os.path.realpath(__file__))
|
||||
REPO_DIR = os.path.normpath(os.path.join(SCRIPT_DIR, "..", ".."))
|
||||
|
||||
sys.path.append(os.path.join(REPO_DIR, "tools", "python"))
|
||||
sys.path.insert(0, os.path.join(REPO_DIR, "tools", "python"))
|
||||
|
||||
|
||||
from util import run # noqa: E402
|
||||
|
|
|
|||
Loading…
Reference in a new issue