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

2005-04-30 Thread Jason Tishler
Ivan, On Sat, Apr 30, 2005 at 08:44:55AM -0600, Ivan Van Laningham wrote: > Jason Tishler wrote: > > I was just clarifying that the win32api module is not supported > > under Cygwin Python. > > Could you clarify? I always thought that the only thing really > different were the default path assum

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

2005-04-30 Thread Ivan Van Laningham
Hi All-- Jason Tishler wrote: > > Ivan, > > 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 P

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

2005-04-30 Thread Jason Tishler
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 -*- > > > > > >

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

2005-04-30 Thread Ivan Van Laningham
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] > > AFA

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

2005-04-30 Thread Jason Tishler
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.

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

2005-04-26 Thread Ivan Van Laningham
Hi All-- Use win32api to find drives: cut here #!/usr/bin/python # -*- coding: utf-8 -*- import os import os.path import win32api import sys def findAllDrives(): Drives=[] print "Searching for drives..." drives=win32api.GetLogicalDriveStrings().split(":") for i in drives

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

2005-04-26 Thread Kristian Zoerhoff
Forwarding to list, as you forgot to Reply-all (Don't worry, we all do it at least once!). -- Forwarded message -- From: Mayer Goldberg <[EMAIL PROTECTED]> Date: Apr 26, 2005 3:01 PM Subject: Re: how to find the drive in python/cygwin? To: Kristian Zoerhoff <[EMAIL PROTECTED]> De