Skip to content

Commit

Permalink
Fix run examples script
Browse files Browse the repository at this point in the history
  • Loading branch information
basilib committed Sep 18, 2024
1 parent 1870622 commit ac23b21
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion examples/run_examples.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit ac23b21

Please sign in to comment.