2 # This should work with either Python2.5 or Python2.6.
4 # Windows doesn't have the 'dirname' command, so fake it
6 dir
=$
(echo "$@" | perl
-pe 's,(.*)/[^/]+,\1,')
7 test "$dir" = "$1" && dir
=.
11 parentdir
="$(dirname $mydir)"
13 # Windows uses 'git-cola.pyw' instead of 'git-cola'
14 COLA
="$parentdir"/bin
/git-cola
15 if test -f "$COLA".pyw
; then
19 # Find a suitable Python and use it to run cola
20 for python
in /c
/Python26
/c
/Python25
; do
21 if test -d "$python"; then
23 exec $python/python.exe
"$COLA" "$@"