Odd problem running command-line python scripts (win2k)
Brian Kelley
bkelley at wi.mit.edu
Thu Dec 5 11:29:56 EST 2002
Here is a test script
--- test_os.py ---
import os
print os.system("DIR > t")
F:\> python test_os.py
0
F:\>
t has the correct listing in it
F:\> del t
F:\> test_os.py
1
F:\>
t doesn't exist
Does anybody have a clue what is going on here? Apparently, I can't get
any system call to work when the program is not explicitly called by python.
I'm using the default python 2.2.1 installation on windows2000.
Thanks.
More information about the Python-list
mailing list