1 2 3 4 5 6 7 8
#!/usr/bin/python import os def start(rcfile): bash_path = "/bin/bash" os.execlp(bash_path, bash_path, "--rcfile", rcfile)