2 # /etc/profile.d/post-python.sh -- Setup Python
4 # Educated guess in case we have no regtool
5 a="//c/Program Files/Python"
8 reg="$(regtool -q get 'HKLM\Software\Python\PythonCore\1.5\InstallPath\')"
9 b="$(cygpath -u ""$reg"")"
11 # Where we installed it
12 c="/usr/windows/Python"
14 for i in "$a" "$b" "$c"; do
20 # What's in the registry
22 # regtool -v list HKLM\Software\Python\PythonCore\1.5
28 # regtool -v list HKLM\Software\Python\PythonCore\1.5\InstallPath
30 # = "C:\cygwin\usr\windows\Python"
32 # regtool -v list HKLM\Software\Python\PythonCore\1.5\PythonPath
33 # = "C:\cygwin\usr\windows\Python\Lib\plat-win;C:\cygwin\usr\windows\Python\Lib;C:\cygwin\usr\windows\Python\DLLs;C:\cygwin\usr\windows\Python\Lib\lib-tk"
35 # regtool -v list HKLM\Software\Python\PythonCore\1.5\Dll
36 # = "C:\WINDOWS\SYSTEM\Python15.dll"
38 # regtool -v list HKLM\Software\Python\PythonCore\1.5\Modules\