[wingide-users] subprocess.Popen works when run in shell, but not in IDE.

Michael Bernhard Arp Sørensen michael at arpsorensen.dk
Fri Oct 25 02:25:18 MDT 2013


Hi all.

I have a strange problem in the IDE. The debugger halts when caling an
external bat-file in Windows. It works perfectly when running the program
in CMD.EXE.

I call an external program 2 times. This line works when running from the
IDE:

result = str(subprocess.check_output(['dmidecode.exe']))

and this line halts in the IDE:

p = subprocess.Popen(['getavstatus.bat'], stdout=subprocess.PIPE)

Again, they both works fine when the program is executed in the CMD.EXE.

Any idea why?

Med venlig hilsen

*Michael B. Arp Sørensen*
Fuglebakken 2, Stevnstrup
8870
Langå
Denmark
40592903
www.arpsorensen.dk
michael at arpsorensen.dk
bernhard at mil.dk
gplus.to/BerserkerBernhard

*Deceptionally primitive appearance.*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: </pipermail/wingide-users/attachments/20131025/c65606d2/attachment.html>


More information about the wingide-users mailing list