Mensanator,
<snip>
>>> import os.path
>>> dl = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'
>>> drives = ['%s:' % d for d in dl if os.path.exists('%s:' % d)]
>>> drives
</snip>Very clever! Malcolm -- http://mail.python.org/mailman/listinfo/python-list
Mensanator,
<snip>
>>> import os.path
>>> dl = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'
>>> drives = ['%s:' % d for d in dl if os.path.exists('%s:' % d)]
>>> drives
</snip>Very clever! Malcolm -- http://mail.python.org/mailman/listinfo/python-list