run python script from command line and then enter interactive mode -
is there way run python module command line ( -m option, imports , runs module ), , enter interactive mode?
i need similar "cmd /k command".
i tested -i option, didn't work; i'm not sure seems redirects in_stream input.
you need put -i
before -m
.
the -m
option interface option; terminates option list , subsequent arguments end in sys.argv
module's main
function. (link doc)
Comments
Post a Comment