Re: Rus Python script interactively

2009-07-18 Thread Gnarlodious
Thanks for all the suggestions! The last solution is the one I was ooking for, I am really starting to like iPython. Learning all kinds of new tricks!. -- Gnarlie -- http://mail.python.org/mailman/listinfo/python-list

Re: Rus Python script interactively

2009-07-18 Thread Peter Otten
Gnarlodious wrote: > In an interactive session (I am using iPython), what is the most > elegant way to run a Python script from Terminal? Right now I am > saying: > > import subprocess > subprocess.call("python /path/to/scriptname.py", shell=True) > > But I am calling a shell process and I'd rat

Re: Rus Python script interactively

2009-07-18 Thread Marcus Wanner
On 7/18/2009 12:32 PM, Gnarlodious wrote: In an interactive session (I am using iPython), what is the most elegant way to run a Python script from Terminal? Right now I am saying: import subprocess subprocess.call("python /path/to/scriptname.py", shell=True) But I am calling a shell process and

Re: Rus Python script interactively

2009-07-18 Thread Lie Ryan
Gnarlodious wrote: > In an interactive session (I am using iPython), what is the most > elegant way to run a Python script from Terminal? Right now I am > saying: > > import subprocess > subprocess.call("python /path/to/scriptname.py", shell=True) > > But I am calling a shell process and I'd rath

Re: Rus Python script interactively

2009-07-18 Thread Diez B. Roggisch
Gnarlodious schrieb: In an interactive session (I am using iPython), what is the most elegant way to run a Python script from Terminal? Right now I am saying: import subprocess subprocess.call("python /path/to/scriptname.py", shell=True) But I am calling a shell process and I'd rather not. The

Rus Python script interactively

2009-07-18 Thread Gnarlodious
In an interactive session (I am using iPython), what is the most elegant way to run a Python script from Terminal? Right now I am saying: import subprocess subprocess.call("python /path/to/scriptname.py", shell=True) But I am calling a shell process and I'd rather not. The script just runs, no in