We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4cd0add commit 6c74717Copy full SHA for 6c74717
exir/_serialize/_flatbuffer.py
@@ -201,7 +201,9 @@ def _run_flatc(args: Sequence[str]) -> None:
201
subprocess.run([flatc_path] + list(args), check=True)
202
else:
203
# Expect the `flatc` tool to be on the system path or set as an env var.
204
- flatc_path = os.getenv("FLATC_EXECUTABLE", "flatc")
+ flatc_path = os.getenv("FLATC_EXECUTABLE")
205
+ if not flatc_path:
206
+ flatc_path = "flatc"
207
208
209
0 commit comments