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

Kristian Zoerhoff kristian.zoerhoff at gmail.com
Tue Apr 26 20:52:20 EDT 2005


Forwarding to list, as you forgot to Reply-all (Don't worry, we all do
it at least once!).

---------- Forwarded message ----------
From: Mayer Goldberg <gmayer at little-lisper.org>
Date: Apr 26, 2005 3:01 PM
Subject: Re: how to find the drive in python/cygwin?
To: Kristian Zoerhoff <kristian.zoerhoff at gmail.com>


Dear Kristian:

Thanks for the very fast reply! I wasn't thinking of the mount command
-- this is really the correct way to think about my problem.

>>My program needs to run on an external media that comes with Cygwin on
>>it. I have no control over what drive is assigned to that media, but
>>for some reason, I do need to know the letter.
>
> Why?

Basically this has to do with moving around: I use different computers
throughout the day, and need to carry with me a sane and productive
computing environment. Rebooting to linux is not an option for me, so I
need a Windows solution. I found it in the form of a 40G pocket hard
drive with a USB connection. I plug in the connection, go to my software
subdirectory and run what I need. I have a mixture of Unix and Windows
programs, and often I have to run a Windows program instead of a unix
program (for example, I run miktex instead of the tetex that comes with
cygwin). The Windows utilities need to be passed arguments in DOS
format, i.e., something like G:\FOO\foo.dll. Cygwin is only one specific
application I use, so I didn't install everything under the / (which
would have solved many problems for me!). As a result, I need to know
the drive letter.

Thanks again,

Mayer


-- 
Kristian

kristian.zoerhoff(AT)gmail.com
zoerhoff(AT)freeshell.org



More information about the Python-list mailing list