Get Cygwin installation path in a Python script

Posted by chris.nullptr on Stack Overflow See other posts from Stack Overflow or by chris.nullptr
Published on 2009-12-18T00:29:47Z Indexed on 2010/04/13 5:43 UTC
Read the original article Hit count: 393

Filed under:
|
|
|

I'm writing a cross-platform python script that needs to know if and where Cygwin is installed if the platform is NT. Right now I'm just using a naive check for the existence of the default install path 'C:\Cygwin'. I would like to be able to determine the installation path programmatically.

The Windows registry doesn't appear to be an option since Cygwin no longer stores it's mount points in the registry. Because of this is it even possible to programmatically get a Cygwin installation path?

© Stack Overflow or respective owner

Related posts about python

Related posts about cygwin