-
Notifications
You must be signed in to change notification settings - Fork 3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
6 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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, | ||
|
@@ -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() | ||
|
||
|