py2exe error

Markus von Ehr mvonehr at web.de
Tue May 29 05:31:36 EDT 2001


Hi,

I use the command os.popen('dir','r').
In th exe I have the following error: file not found.
Then I tried the popen2 module.
w, r = popen2.popen2('dir', mode='t')
The same occurred.
File "popen2.pyc", line 120, in popen2
the file is not found.

I need the command: dir to read out the Harddisk serial number.
Can I read it using another command?

Thanks for any comments,

Markus





More information about the Python-list mailing list