Re: Trouble with running java using Popen

2009-06-23 Thread Edward Grefenstette
Bingo. I was running the python script in GNU script, and it wasn't loading my bash config file properly. Have fixed it by altering .screenrc and now the code runs fine. Would have never guessed to look if you hadn't mentioned it, cheers! Best, Ed On Jun 23, 11:29 pm, "Diez B. Roggisch" wrote: >

Re: Trouble with running java using Popen

2009-06-23 Thread Diez B. Roggisch
Edward Grefenstette schrieb: I have a java prog I need to run at some point during the execution of a python module. The path to the folder containing the all the relevant java stuff (which runs fine from the command line) is stored in pkgpath. The relevant code is this: os.chdir(pkgpath) argl

Re: Trouble with running java using Popen

2009-06-23 Thread Chris Rebert
On Tue, Jun 23, 2009 at 2:29 PM, Edward Grefenstette wrote: > I have a java prog I need to run at some point during the execution of > a python module. > > The path to the folder containing the all the relevant java stuff > (which runs fine from the command line) is stored in pkgpath. The > relevan

Re: Trouble with running java using Popen

2009-06-23 Thread norseman
Edward Grefenstette wrote: I have a java prog I need to run at some point during the execution of a python module. The path to the folder containing the all the relevant java stuff (which runs fine from the command line) is stored in pkgpath. The relevant code is this: os.chdir(pkgpath) arglis

Trouble with running java using Popen

2009-06-23 Thread Edward Grefenstette
I have a java prog I need to run at some point during the execution of a python module. The path to the folder containing the all the relevant java stuff (which runs fine from the command line) is stored in pkgpath. The relevant code is this: >>> os.chdir(pkgpath) >>> arglist = "java -Xmx1024m Se