Skip to content

Commit

Permalink
Fix ci
Browse files Browse the repository at this point in the history
  • Loading branch information
otto-ifak committed Nov 11, 2024
1 parent 4db067d commit cfdad64
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions bin/check_readme.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,5 +63,10 @@ class Block:
print("-"*10)
f.write(block.content)
f.flush()
subprocess.check_call(["python3", f.name], env={'PYTHONPATH': ROOT_DIR}, cwd=tmp_dir)
assert skipped == 3, skipped
pypath = ROOT_DIR
try:
pypath += f"{os.pathsep}{os.environ['PYTHONPATH']}"
except KeyError:
pass
subprocess.check_call(["python", f.name], env={'PYTHONPATH': pypath}, cwd=tmp_dir)
assert skipped == 7, skipped

0 comments on commit cfdad64

Please sign in to comment.