Re: py2exe deal with python command line inside a program

2010-01-24 Thread im_smialing
Hi Jonathan, Here is the traceback I got, 'test.py' is where main starts, and I replaced 'sys.executable' with string 'python': args: ['python', 'C:\\myscript.py'] Traceback (most recent call last): File test.py, line 22, in module File subprocess.pyc, line 594, in __init__ File

Re: py2exe deal with python command line inside a program

2010-01-24 Thread im_smialing
On Jan 24, 6:35 am, Chris Rebert c...@rebertia.com wrote: On Sun, Jan 24, 2010 at 3:28 AM, Jonathan Hartley tart...@tartley.com wrote: On Jan 22, 7:35 pm, susan_kij...@yahoo.ca wrote: Hi, I need to create a python subprogress, like this: myProcess = subprocess.Popen([sys.executable,

Re: py2exe deal with python command line inside a program

2010-01-23 Thread im_smialing
On Jan 22, 2:35 pm, susan_kij...@yahoo.ca wrote: Hi, I need to create a python subprogress, like this: myProcess = subprocess.Popen([sys.executable, 'C:\myscript.py'],                                        env=env, stdin=subprocess.PIPE,