]> git.donarmstrong.com Git - lilypond.git/blob - Documentation/windows/post-python.sh
patch::: 1.3.149.jcn1
[lilypond.git] / Documentation / windows / post-python.sh
1 #!@SHELL@
2 # /etc/profile.d/post-python.sh -- Setup Python
3
4 # Educated guess in case we have no regtool
5 a="//c/Program Files/Python"
6
7 # Registry entry
8 reg="$(regtool -q get 'HKLM\Software\Python\PythonCore\1.5\InstallPath\')"
9 b="$(cygpath -u ""$reg"")"
10
11 # Where we installed it
12 c="/usr/windows/Python"
13
14 for i in "$a" "$b" "$c"; do
15         if [ -d "$i" ]; then
16                 python="$i"
17         fi
18 done
19
20 # What's in the registry
21
22 #  regtool -v list HKLM\Software\Python\PythonCore\1.5
23 #  InstallPath\ ()
24 #  PythonPath\ ()
25 #  Dll\ ()
26 #  Modules\ ()
27
28 #  regtool -v list HKLM\Software\Python\PythonCore\1.5\InstallPath
29 #  InstallGroup\ ()
30 #   = "C:\cygwin\usr\windows\Python"
31
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"
34
35 #  regtool -v list HKLM\Software\Python\PythonCore\1.5\Dll
36 #   = "C:\WINDOWS\SYSTEM\Python15.dll"
37
38 #  regtool -v list HKLM\Software\Python\PythonCore\1.5\Modules\
39 #   = ""
40
41