Commit 85b5c78c authored by Victor Poughon's avatar Victor Poughon
Browse files

REFAC: blacklist ApplicationExample from cookbook for now

No related merge requests found
Showing with 7 additions and 0 deletions
+7 -0
...@@ -28,12 +28,19 @@ import re ...@@ -28,12 +28,19 @@ import re
from rst_utils import examples_usage_regex from rst_utils import examples_usage_regex
# blacklist ApplicationExample for now because it does not produce a binary
# we can run (we could patch this script to support applications in the future)
blacklist = ["ApplicationExample"]
def run_example(otb_root, otb_data, name, dry_run): def run_example(otb_root, otb_data, name, dry_run):
""" """
Run an example by name Run an example by name
Assumes the current working directory is an OTB build Assumes the current working directory is an OTB build
""" """
if name in blacklist:
return
# Find binary in bin/ # Find binary in bin/
binary_names = glob.glob(join("bin", name)) binary_names = glob.glob(join("bin", name))
if len(binary_names) == 0: if len(binary_names) == 0:
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment