Fwd: how to find the drive in python/cygwin?

Jason Tishler jason at tishler.net
Sat Apr 30 10:39:28 EDT 2005


Ivan,

On Sat, Apr 30, 2005 at 07:29:32AM -0600, Ivan Van Laningham wrote:
> Jason Tishler wrote:
> > 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?

It depends on your needs.  If you are looking for a more Unix-like
Python, then the Cygwin version would probably be better.  If
Windows-like, then the native Windows version would probably be better.

The OP seem to be interested in a Cygwin Python solution -- not a
Windows one.  So, I was just clarifying that the win32api module is not
supported under Cygwin Python.

Jason

-- 
PGP/GPG Key: http://www.tishler.net/jason/pubkey.asc or key servers
Fingerprint: 7A73 1405 7F2B E669 C19D  8784 1AFD E4CC ECF4 8EF6



More information about the Python-list mailing list