Tim Golden wrote: > [EMAIL PROTECTED] wrote: > > Tim Golden wrote: > > > Claude Henchoz wrote: > > > > > > > Is there any way of listing partitions on a (win32) computer without > > > > using WMI? > > > > > > Not that this answers your question, but why _don't_ you > > > want to use WMI? > > > > > > TJG > > > > >>> import wmi > > > > Traceback (most recent call last): > > File "<pyshell#0>", line 1, in -toplevel- > > import wmi > > ImportError: No module named wmi > > >>> > > It's quite possible to do WMI in Python without using > the wmi module -- all the module does is to hide some > slightly messy plumbing. But the OP doesn't suggest > that he's unwilling to install anything, merely to *use* > WMI. (Unless you _are_ the OP under a different alias). > > Just to make it plain: it's no skin off my nose at all. I > don't get offended because someone doesn't want to > use WMI. I'm merely curious as to whether it was > because the wmi module was too hard, or whether > the machines were Win9x or NT, where you have to > go out of your way to install WMI, or whether there > was some other reason. > I am not him, but just another data point(possibly reason) of why one doesn't want to use it. It is not intended to be a post of "wmi suck". In fact, when I first saw the post about wmi module, I immediate tried to query my XP using it but once I saw the above, I gave up.
-- http://mail.python.org/mailman/listinfo/python-list