onnxruntime/tools/python/util
Scott McKay d4470fe653
Update Android SDK tools path lookup to be more strongly anchored to the provided root. (#21046)
### Description
<!-- Describe your changes. -->
The tools should really all come from the same Android NDK, so using
`shutil.which` adds potential confusion when we do a lookup for the
target program by name first due to adding `dirnames.insert(0, "")` as
the first directory entry to lookup as it will match the filename
anywhere in the current path.

That's problematic as the emulator should come from
<sdk_tools>/emulator/emulator (see
[here](https://www.stkent.com/2017/08/10/update-your-path-for-the-new-android-emulator-location.html)),
but the paths on the CI machines result in the old location of
<sdk_tools>/tools/emulator being selected. This leads to the emulator
failing to run on arm64 macOS CIs as the old emulator does not look for
the arm64 binary.

At the most you may have multiple cmdline-tools versions installed, but
if we need to support explicitly specifying a version for that path that
can be added.

### Motivation and Context
<!-- - Why is this change required? What problem does it solve?
- If it fixes an open issue, please link to the issue here. -->
Make emulator run on arm64 macOS machines.
2024-06-17 09:24:43 +10:00
..
android Update Android SDK tools path lookup to be more strongly anchored to the provided root. (#21046) 2024-06-17 09:24:43 +10:00
mobile_helpers Bump ruff to 0.3.2 and black to 24 (#19878) 2024-03-13 10:00:32 -07:00
ort_format_model Bump ruff to 0.3.2 and black to 24 (#19878) 2024-03-13 10:00:32 -07:00
qdq_helpers Graph transformer to ensure unique DQ nodes for QDQ node units (#15145) 2023-03-31 08:39:43 +10:00
test Adopt linrtunner as the linting tool - take 2 (#15085) 2023-03-24 15:29:03 -07:00
__init__.py Adopt linrtunner as the linting tool - take 2 (#15085) 2023-03-24 15:29:03 -07:00
__init__append.py Adopt linrtunner as the linting tool - take 2 (#15085) 2023-03-24 15:29:03 -07:00
add_openvino_win_libs.py Enable model subgraph execution in OVEP and setting the OpenVINO dll's to the path from the OpenVINO pypi packge in OVEP and fix OVEP windows io buffer sample (#16147) 2023-06-16 19:47:09 -07:00
check_onnx_model_mobile_usability.py Bump ruff in CI (#15533) 2023-04-17 10:11:44 -07:00
convert_onnx_models_to_ort.py Bump ruff to 0.3.2 and black to 24 (#19878) 2024-03-13 10:00:32 -07:00
file_utils.py
get_azcopy.py [Linter] Bump ruff and remove pylint (#17797) 2023-10-05 21:07:33 -07:00
logger.py Add tool to fix lines > 120 chars. (#18293) 2023-11-09 10:12:57 +10:00
make_dynamic_shape_fixed.py
onnx_model_utils.py Update to allow large models to be checked for mobile support. (#18357) 2023-11-17 07:20:16 +10:00
optimize_onnx_model.py Fix url in the code documentation (graph optimizations) (#16770) 2023-07-20 07:02:22 -07:00
platform_helpers.py Adopt linrtunner as the linting tool - take 2 (#15085) 2023-03-24 15:29:03 -07:00
pytorch_export_helpers.py Enable pylint and numpy rules (#15218) 2023-03-27 20:37:53 -07:00
reduced_build_config_parser.py Adopt linrtunner as the linting tool - take 2 (#15085) 2023-03-24 15:29:03 -07:00
run.py Adopt linrtunner as the linting tool - take 2 (#15085) 2023-03-24 15:29:03 -07:00
update_onnx_opset.py