Re: From Python to Shell

2006-06-08 Thread Harold Fellermann
> Im not a total noob but i don't know the command and the module to go > from python to the default shell. there are several ways depending on what exactly you want to achieve: sys.exit(return_value): terminates the python process and gives controll back to the shell os.system(command_string

Re: From Python to Shell

2006-06-08 Thread Fredrik Lundh
NightHawk wrote: > Im not a total noob but i don't know the command and the module to go > from python to the default shell. I'm not sure what you mean by "go to", but if you want to start an interactive OS shell from inside Python, you can do: >>> import os >>> os.system(os.env

From Python to Shell

2006-06-08 Thread NightHawk
Im not a total noob but i don't know the command and the module to go from python to the default shell. (not from interactive mode - $python) -- http://mail.python.org/mailman/listinfo/python-list