py2exe deal with python command line inside a program

Aahz aahz at pythoncraft.com
Thu Jan 28 19:18:43 EST 2010


In article <c7243b25-906a-4bf4-b20b-251ab5b6a378 at m26g2000yqb.googlegroups.com>,
 <susan_kijiji at yahoo.ca> wrote:
>
>I need to create a python subprogress, like this:
>myProcess = subprocess.Popen([sys.executable, 'C:\myscript.py'],
>                                       env=env, stdin=subprocess.PIPE,
>                                       stdout=subprocess.PIPE)

You need to change your setup.py so that myscript.py is also an exe.
-- 
Aahz (aahz at pythoncraft.com)           <*>         http://www.pythoncraft.com/

import antigravity



More information about the Python-list mailing list