From ac23b210565165960f9b73b18d5df437b49eaf38 Mon Sep 17 00:00:00 2001 From: Basil Ibrahim Date: Wed, 18 Sep 2024 22:26:58 +0100 Subject: [PATCH] Fix run examples script --- examples/run_examples.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/examples/run_examples.py b/examples/run_examples.py index 30739db10..0b6cc3c05 100644 --- a/examples/run_examples.py +++ b/examples/run_examples.py @@ -8,12 +8,13 @@ directory = os.path.abspath(os.path.dirname(__file__)) examples = os.popen("find . | grep \.py$").readlines() - assert len(examples) > 0 N = len(examples) errs = [] for eg in examples[1:]: + print(eg) + if 'run_examples.py' in eg: continue print("Running %s" % eg) errno = subprocess.call("python " + eg[:-1] + " -q", shell=True) if errno != 0: