I found this to be even better; maybe someone will find this useful, who knows. just export PS1, duh Popen(["bash -c 'export PS1='python'; source $HOME/.bashrc;alias'"],shell=True,stdout=PIPE).stdout.read()
-Alex Goretoy
-- http://mail.python.org/mailman/listinfo/python-list