Skip to content

Commit

Permalink
Merge pull request #176 from BoothGroup/examples
Browse files Browse the repository at this point in the history
Fix run examples script
  • Loading branch information
basilib authored Sep 18, 2024
2 parents 1870622 + ac23b21 commit c4a7c79
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 c4a7c79

Please sign in to comment.