Hello all,
I am trying to use os.system from within a wxPython program and
have encountered something strange. When I call os.system to
"start" a html file, the os.system call takes nearly ten seconds
to run. If I don't import wxPython, the call returns straight away.
I have reproduced this from the Python interactive window, ie
Python 2.1 (#15, Apr 16 2001, 18:25:49) [MSC 32 bit (Intel)] on win32
Type "copyright", "credits" or "license" for more information.
import os
os.system('start d:\\') # Succeeds straight away
0
from wxPython.wx import *
os.system('start d:\\') # Takes nearly ten seconds.
0
This affects NT 4 and 2000.
I can work around this by calling wxExecute like this:
wxExecute('cmd.exe /C "start d:\\"')
but it is strange nonetheless. Has anyone else seen this?
Tia,
Noel Duffy.
···
--