Skip to content

Commit 9958cc7

Browse files
author
Paolo Tranquilli
committed
Codegen: consider windows paths in local codeql binary heuristic
1 parent ba89a5d commit 9958cc7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

misc/codegen/generators/qlgen.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@ def format(codeql, files):
258258
if not ql_files:
259259
return
260260
format_cmd = [codeql, "query", "format", "--in-place", "--"] + ql_files
261-
if "/" in codeql:
261+
if "/" in codeql or "\\" in codeql:
262262
if not pathlib.Path(codeql).exists():
263263
raise FormatError(f"Provided CodeQL binary `{codeql}` does not exist")
264264
else:

0 commit comments

Comments
 (0)