[Python.NET] Issues with running a phyton script from c#

Maksim Kozyarchuk mkozyarchuk at hedgeserv.com
Mon Aug 17 13:38:44 CEST 2009

Launching the application using pythonw.exe instead of python should resolve this.


From: pythondotnet-bounces+mkozyarchuk=funddevelopmentservices.com at python.org <pythondotnet-bounces+mkozyarchuk=funddevelopmentservices.com at python.org> 
To: pythondotnet at python.org <pythondotnet at python.org> 
Sent: Sun Aug 16 00:05:05 2009
Subject: [Python.NET] Issues with running a phyton script from c# 

I am able to run a phyton script from C# using a code similar to:

p = new Process()
p.StartInfo.Filename = path/to/script
p.StartInfo.Arguments = string_with_arguments
p.StartInfo.CreateNoWindow = true

I am not interested in the script outcomes since the script just
starts a Tk app with its own Gui.

The problem/annoyance I am having is when the process starts, it does
so with a command window that points to python instalation location
(so something like C:\Python25\python.exe) and just hangs there until
I quit the Tk gui. Is there a way to get rid of this command window?
If I close the command window manually, the Tk app closes as well.

Thank you for your help, 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/pythondotnet/attachments/20090817/3088fa57/attachment.htm>

More information about the PythonDotNet mailing list