Skip to content

Commit

Permalink
minor fix to compare_snippet_output
Browse files Browse the repository at this point in the history
  • Loading branch information
Wumpf committed Jul 1, 2024
1 parent 8fb3afa commit 0e8936a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docs/snippets/compare_snippet_output.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@ def main() -> None:
examples = []
if len(args.example) > 0:
for example in args.example:
example = example.replace("\\", "/")
parts = example.split("/")
examples.append(Example("/".join(parts[0:-1]), parts[-1]))
else:
Expand All @@ -149,7 +150,7 @@ def main() -> None:
if not args.no_cpp_build:
print(f"Running {len(examples)} C++ examples…")
for example in examples:
if "cpp" not in example.opt_out_entirely():
if "cpp" not in example.opt_out_entirely() and "cpp" in active_languages:
run_example(example, "cpp", args)

print(f"Running {len(examples)} Rust and Python examples…")
Expand Down

0 comments on commit 0e8936a

Please sign in to comment.