ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> python.net
python.net
Re: [Python.NET] Issues with running a phyton script from c#
by Maksim Kozyarchuk other posts by this author
Aug 17 2009 5:48AM messages near this date
Re: [Python.NET] Issues with running a phyton script from c# | Re: [Python.NET] Issues with running a phyton script from c#
FRAMEWORK Launching the application using pythonw.exe instead of python should resolve this.




________________________________

From: pythondotnet-bounces+mkozyarchuk=funddevelopmentservices.com@[...].org <pythondotnet-b
ounces+mkozyarchuk=funddevelopmentservices.com@[...].org>  

To: pythondotnet@[...].org <pythondotnet@[...].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
p.Start()


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, 
Thread:
Mahi Haile
Craig Farrow
Maksim Kozyarchuk
Mahi Haile

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved