3 # find a Python 2.6 binary
5 for dir
in /usr
/bin
/usr
/local
/bin
/Library
/Frameworks
/Python.framework
/Versions
/$pyver/bin
/System
/Library
/Frameworks
/Python.framework
/Versions
/$pyver/bin
; do
6 if [ -e $dir/python
$pyver ]; then
7 PYTHON
=$dir/python
$pyver
12 if [ -z $PYTHON ]; then
13 echo ERROR
: Unable to
find a Python
$pyver binary
18 # and all of the wxPython package should be group writable
20 # install a .pth file in any Python installs we can find
21 for dir
in /Library
/Python
/$pyver/site-packages
/Library
/Frameworks
/Python.framework
/Versions
/$pyver/lib
/python
$pyver/site-packages
; do
23 echo Writing gammu.pth
in $dir
24 DEST
=`dirname /usr/lib/python$pyver/site-packages/gammu`
25 cat > $dir/gammu.pth
<<pthEOF
26 import site; site.addsitedir('$DEST')