Fwd: how to find the drive in python/cygwin?
Ivan Van Laningham
ivanlan at pauahtun.org
Sat Apr 30 09:29:32 EDT 2005
Hi All--
Jason Tishler wrote:
>
> Ivan,
>
> On Tue, Apr 26, 2005 at 07:02:48PM -0600, Ivan Van Laningham wrote:
> > Use win32api to find drives:
> >
> > ====cut here====
> > #!/usr/bin/python
> > # -*- coding: utf-8 -*-
> >
> > import os
> > import os.path
> > import win32api
> > [snip]
>
> AFAICT, the win32api module has not been ported to Cygwin Python.
>
I'm not running Cygwin, but Uwin. I installed regular Python:
Python 2.4 (#60, Nov 30 2004, 11:49:19) [MSC v.1310 32 bit (Intel)] on
win32
Type "help", "copyright", "credits" or "license" for more information.
>>> ^Z
with the win32api that matched. I have no trouble running it. Is there
some reason to prefer a Python compiled by the Cygwin tools?
Metta,
Ivan
----------------------------------------------
Ivan Van Laningham
God N Locomotive Works
http://www.andi-holmes.com/
http://www.foretec.com/python/workshops/1998-11/proceedings.html
Army Signal Corps: Cu Chi, Class of '70
Author: Teach Yourself Python in 24 Hours
More information about the Python-list
mailing list