Python on linux

Sybren Stuvel sybrenUSE at YOURthirdtower.com.imagination
Fri Nov 18 14:16:10 EST 2005


John Abel enlightened us with:
> Here's one I used a while back.  Returns a dict containing details per 
> partition

This only gives information about actually mounted partitions. It
could be improved by checking /proc/partitions as well.

Sybren
-- 
The problem with the world is stupidity. Not saying there should be a
capital punishment for stupidity, but why don't we just take the
safety labels off of everything and let the problem solve itself? 
                                             Frank Zappa



More information about the Python-list mailing list