Wu, Huaxing (STP) wrote: > Thanks for trying out and fix the typo (Outlook loves to capitalize > the first letter) > > My environment is Windows 2000, and I was running from Eclipse. > To follow your example, I tried to run them from command prompt, and I got > C:\temp\x>aa.py > in C:\temp\x\aa.py > in C:\temp\x\bb.py > in C:\temp\x\cc.py > executingh cc.py 0 > executingh bb.py 0 > > So it works. > > But when I tried again to run them from eclipse. I got only > in C:\temp\x\aa.py > in C:\temp\x\bb.py > executingh cc.py 0 > executingh bb.py 0 > > The "in C:\temp\x\cc.py" never get printed And some of my more > complicated real example shows cc.py never run.
The evidence suggests that cc.py DID run (in that os.system returned 0), but that its output went somewhere else. Perhaps Eclipse is mixing up the standard handles in some way. Have you tried doing this with the subprocess module? It slightly less convenient than os.system, but you get a lot more control. -- Tim Roberts, [EMAIL PROTECTED] Providenza & Boekelheide, Inc. _______________________________________________ Python-win32 mailing list Python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32