We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 80ee5f6 commit 99b1539Copy full SHA for 99b1539
exir/_serialize/_flatbuffer.py
@@ -186,8 +186,9 @@ def _run_flatc(args: Sequence[str]) -> None:
186
with importlib.resources.path(__package__, _FLATC_RESOURCE_NAME) as flatc_path:
187
subprocess.run([flatc_path] + list(args), check=True)
188
else:
189
- # Expect the `flatc` tool to be on the system path.
190
- subprocess.run(["flatc"] + list(args), check=True)
+ # Expect the `flatc` tool to be on the system path or set as an env var.
+ flatc_path = os.getenv("FLATC_EXECUTABLE", "flatc")
191
+ subprocess.run([flatc_path] + list(args), check=True)
192
193
194
def _flatc_compile(output_dir: str, schema_path: str, json_path: str) -> None:
0 commit comments