Skip to content

Commit

Permalink
Adding back sys.path
Browse files Browse the repository at this point in the history
  • Loading branch information
jchen351 committed Jan 18, 2024
1 parent 8da3a84 commit 10e2aea
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions tools/ci_build/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,14 @@
import subprocess
import sys
from pathlib import Path
from ..python.util import android as android

SCRIPT_DIR = os.path.dirname(os.path.realpath(__file__))
REPO_DIR = os.path.normpath(os.path.join(SCRIPT_DIR, "..", ".."))

sys.path.insert(0, os.path.join(REPO_DIR, "tools", "python"))
# The Following utility packages are from onnxruntime/tools/python/util
from ..python.util import (
import util.android as android # noqa: E402
from util import (

Check warning

Code scanning / lintrunner

RUFF/E402 Warning

Module level import not at top of file.
See https://docs.astral.sh/ruff/rules/module-import-not-at-top-of-file
get_logger,
is_linux,
is_macOS,
Expand All @@ -42,7 +46,6 @@
setup_cann_vars,
) # noqa: E402

Check warning

Code scanning / lintrunner

RUFF/RUF100 Warning

Unused noqa directive (unused: E402).
See https://docs.astral.sh/ruff/rules/unused-noqa

SCRIPT_DIR = os.path.dirname(os.path.realpath(__file__))
log = get_logger("build")
check_python_version()

Expand Down

0 comments on commit 10e2aea

Please sign in to comment.