Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > Doesn't MS-Windows likes Python ? (or: why more than 20 sec delaywhen running a program from Python)

Reply
Thread Tools

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

 
 
Stef Mientki
Guest
Posts: n/a
 
      11-01-2009
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
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
findcontrol("PlaceHolderPrice") why why why why why why why why why why why Mr. SweatyFinger ASP .Net 2 12-02-2006 03:46 PM
Re: Upgrade path: MCSA2000:Sec -> MCSA2003 -> MCSE2003:Sec ? The Rev [MCT] MCSE 0 12-13-2005 12:22 PM
Re: Upgrade path: MCSA2000:Sec -> MCSA2003 -> MCSE2003:Sec ? Bob Christian MCSE 1 12-13-2005 08:36 AM
No PAT from Higher Sec to Lower Sec interface Clemens Schwaighofer Cisco 0 10-20-2005 10:18 AM
Upgrade path: MCSA2000:Sec -> MCSA2003 -> MCSE2003:Sec ? =?Utf-8?B?QW1hbiBCLg==?= MCSE 4 09-07-2005 06:55 PM



Advertisments