-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Replace backend_driver by new example runner. #17226
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
tools/run_examples.py
Outdated
help="examples to run; defaults to all examples (except *_sgskip.py)") | ||
args = parser.parse_args() | ||
|
||
root = (Path(__file__).parent / "../examples").resolve() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
.parent
and ..
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the first parent is basically dirname(); I guess the other option would be .parents[1] / "examples"
but I always find it hard to get the right index in the brackets...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could do .parent.parent
, maybe?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sure, that's fine too
0c1c34f
to
e3b2a80
Compare
Shouldn't it be possible to run this with no arguments?
|
backend_driver has been really outdated for a long time. Replace it by a new script running all or a subset of the examples scripts.
oops, should be fixed now. |
backend_driver has been really outdated for a long time. Replace it by
a new script running all or a subset of the examples scripts.
Supersedes #8069 (@dstansby).
PR Summary
PR Checklist