blob: 731252776a922019799c3c9cdc1351d8caaf48e7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
for dir in . .. ../..
do
config=$dir/config.mak
test -f $config && break
done
pfx=`grep ^prefix $config | awk '{ print $3}'`
pyver=`python -V 2>&1 | sed 's/Python \([0-9]*.[0-9]*\).*/\1/'`
PYTHONPATH=$pfx/lib/python$pyver/site-packages:$PYTHONPATH
PATH=$pfx/bin:$PATH
#PYTHONPATH=../../python:$PYTHONPATH
#PATH=../../python:../../python/bin:../../scripts:$PATH
#LD_LIBRARY_PATH=/opt/apps/py26/lib:$LD_LIBRARY_PATH
#PATH=/opt/apps/py26/bin:$PATH
export PYTHONPATH PATH LD_LIBRARY_PATH PATH
PGHOST=localhost
export PGHOST
|