run python script from command line and then enter interactive mode
command-line, python
Solution
You need to put the `-i` before the `-m`.
The `-m` option is an interface option; it terminates the option list and all subsequent arguments will end up in `sys.argv` for the module's `main` function. (link to doc)
Problem
Is there a way to run a python module from command line ( -m option, which imports and runs a module ), and then enter the interactive mode? I need something similar to "cmd /k command". I tested the -i option, but it didn't work; I'm not sure but it seems just redirects in_stream from input.