[python-win32] ActiveState Python + Cygwin Query

Reedick, Andrew jr9445 at ATT.COM
Tue Jan 8 22:50:16 CET 2008


What exactly is the problem that you're seeing?  Cygwin accepts
c:/some/where/file.xt, c:\\some\\where\\file.txt,
'c:\some\where\file.txt', /cygdrive/c/some/where/file.txt, and so on.

 

 

 

From: Tennis Smith [mailto:tennis at digitalfountain.com] 
Sent: Tuesday, January 08, 2008 4:24 PM
To: Reedick, Andrew; python-win32 at python.org
Subject: RE: [python-win32] ActiveState Python + Cygwin Query

 

Great! Thanks.

 

Now, how do you get ActiveState Python to work with the cygwin paths?

 

-T

 

From: Reedick, Andrew [mailto:jr9445 at ATT.COM] 
Sent: Tuesday, January 08, 2008 12:30 PM
To: Tennis Smith; python-win32 at python.org
Subject: RE: [python-win32] ActiveState Python + Cygwin Query

 

Check the environment variables:

                OS=Windows_NT

                OSTYPE=cygwin

 

 

From: python-win32-bounces at python.org
[mailto:python-win32-bounces at python.org] On Behalf Of Tennis Smith
Sent: Tuesday, January 08, 2008 1:08 PM
To: python-win32 at python.org
Subject: [python-win32] ActiveState Python + Cygwin Query

 

Hi,

 

I have 2 questions concerning this combination.

 

1)      Since ActiveState uses win32 path names and cygwin uses linux
path names, there are lots of occasions when files can't be found.
There are multiple ways (I understand) that this can be reconciled, but
what is considered the most workable?  (And no, getting rid of
ActiveState or cygwin isn't possible, so that option is out ;-) ) 

2)      What's the best pythonic way to detect that the environment is
cygwin?  Is there some way to do it via "os" methods?

 

Thanks,

-T

*****

The information transmitted is intended only for the person or entity to
which it is addressed and may contain confidential, proprietary, and/or
privileged material. Any review, retransmission, dissemination or other
use of, or taking of any action in reliance upon this information by
persons or entities other than the intended recipient is prohibited. If
you received this in error, please contact the sender and delete the
material from all computers. GA622

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/python-win32/attachments/20080108/8c122d79/attachment-0001.htm 


More information about the python-win32 mailing list