Message162874
The documentation http://docs.python.org/library/commands.html
prominently says "Platforms: Unix". This module does not work on Windows.
You should really use the subprocess module:
>>> import subprocess
>>> output = subprocess.check_output("dir", shell=True) |
|
Date |
User |
Action |
Args |
2012-06-15 08:38:48 | amaury.forgeotdarc | set | recipients:
+ amaury.forgeotdarc, p.fedin |
2012-06-15 08:38:48 | amaury.forgeotdarc | set | messageid: <1339749528.26.0.667771884439.issue15073@psf.upfronthosting.co.za> |
2012-06-15 08:38:47 | amaury.forgeotdarc | link | issue15073 messages |
2012-06-15 08:38:47 | amaury.forgeotdarc | create | |
|