Velocity Reviews

Velocity Reviews (http://www.velocityreviews.com/forums/index.php)
-   Python (http://www.velocityreviews.com/forums/f43-python.html)
-   -   Doesn't MS-Windows likes Python ? (or: why more than 20 sec delaywhen running a program from Python) (http://www.velocityreviews.com/forums/t703825-doesnt-ms-windows-likes-python-or-why-more-than-20-sec-delaywhen-running-a-program-from-python.html)

Stef Mientki 11-01-2009 11:42 PM

Doesn't MS-Windows likes Python ? (or: why more than 20 sec delaywhen running a program from Python)
 
hello,

I've an AutoIt program that set some switches in the LAN settings.

When I launch the AutoIt executable, the settings are changed immediately.

When I launch the AutoIt executable from python (which is the intention),
it hangs for about 20 seconds, before any action appears on the screen.

Analyzing the script, shows that it hangs on the next 2 lines:

Run ( "control.exe ncpa.cpl" )
WinWait( "Network Connections")

Transfering the Run command to Python, it hangs on the next subprocess call
subprocess.call ( [ r"control.exe", "ncpa.cpl" ])

Does anyone have a clue, why starting a process takes 20 seconds longer
when ran from Python ?

And even more important, is there a work around ?

thanks,
Stef Mientki


All times are GMT. The time now is 10:50 AM.

Powered by vBulletin®. Copyright ©2000 - 2014, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.