On Mon, Jul 21, 2008 at 1:59 PM, mk <[EMAIL PROTECTED]> wrote:
> Jie wrote: > >> Hi all, >> >> i'm having trouble executing os.system('source .bashrc') command >> within python, it always says that source not found and stuff. Any >> clue? >> > > It _might_ be that the shell it fires up is /bin/sh and this in turn is not > bash. > > Anyway, it's better to use subprocess / Popen for this sort of operation. > > > "source" is a bash built-in command and not an executable file. That's why you need to do something like execute "/bin/bash .bashrc".
-- http://mail.python.org/mailman/listinfo/python-list