Hi,
sorry, I forgot to attach my files. I use python MakeDist_subprocesstest.py install to generate the executable from subprocesstest.py I'm using Python2.5, cx_freeze 4.1 on Windows XP. Wolfgang
#!/usr/bin/env python # -*- python -*- coding: iso-8859-1 -*- # $Id$ # # Copyright (C) 1990 - 2009 CONTACT Software GmbH # All rights reserved. # http://www.contact.de/ # # File: MakeDist_subprocesstest.py # Author: ws # Creation: 22.07.09 # Purpose: """ Module MakeDist_subprocesstest.py This is the documentation for the MakeDist_subprocesstest.py module. """ __docformat__ = "restructuredtext en" from cx_Freeze import setup, Executable setup( name = "subprocesstest", version = "1.0", description = "", executables = [Executable("subprocesstest.py", base="Win32GUI")]) # executables = [Executable("subprocesstest.py")])
#!/usr/bin/env python # -*- python -*- coding: iso-8859-1 -*- # $Id$ # # Copyright (C) 1990 - 2009 CONTACT Software GmbH # All rights reserved. # http://www.contact.de/ # # File: subprocesstest.py # Author: ws # Creation: 22.07.09 # Purpose: """ Module subprocesstest.py This is the documentation for the subprocesstest.py module. """ __docformat__ = "restructuredtext en" import subprocess import time lsCommand = r"c:\sdk\win32\1.0\gnuwin32-shelltools\ls.exe" def doSubProcessing(): stdoutF = file("stdoutfile.txt", "w") p = subprocess.Popen([lsCommand, "-l"], stdout=subprocess.PIPE) stdoutLine = 1 while stdoutLine: p.poll() while (p.returncode is None): time.sleep(1) p.poll() stdoutLine = p.stdout.read().strip() print stdoutLine if "__main__" == __name__: doSubProcessing()
------------------------------------------------------------------------------
_______________________________________________ cx-freeze-users mailing list cx-freeze-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/cx-freeze-users