Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork252
Open
Labels
Description
Running:
bpython -c 'from mymodule import *' -iimports the desiret items correctly, but then doesn't drop into the python shell (it quits instead).
Reversing the order of arguments:
bpython -i -c 'from mymodule import *'has a "strange" effect: the bpython banner (the line with bpython & python version) is not printed anymore, also$PYTHONSTARTUP is ignored, and all the nice ncurses-based highlighting and completion functionalities are disabled. Is this the intended behavior? Why?
Currently, to automate importing a module (e.g. for doing interactive testing during development on that module) I have to put my import line in a file, and dobpython -i import_mymodule.py. (I tend to use$PYTHONSTARTUP just for importing some commonly used modules).