-
-
Notifications
You must be signed in to change notification settings - Fork 245
bpython cannot run directories with __main__.py. #530
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
Comments
this fix is not complete; python3 evaluates i think you want to be using here is a sample stack trace from python3 execution, indicating that runpy is used:
|
Thanks for the hint. I'll look into it. |
Unfortunately it's not an option until we decide to drop support for 2.6. |
It also requires major changes to the current |
After some testing I don't think that it's possible to use runpy. It breaks |
I thought about using runpy in #284 but ran into the same thing. |
meaning that this would be a very intrusive change? python has its own -i option, so i wonder if reading that implementation works would be helpful. i imagine it could be a large undertaking, but the obvious benefit is that you will get the 'official' behavior now and in the future. @thomasballinger i'd be down to pair on looking at how this works in cpython sometime if you are interested. |
python can execute directories with
__main__.py
; bpython cannot but should. repro:The text was updated successfully, but these errors were encountered: