Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 482798
Collapse All | Expand All

(-)etc/scripts/gmvault (-6 lines)
Lines 49-66 Link Here
49
    #set pythonhome but it should not be necessary
49
    #set pythonhome but it should not be necessary
50
    export PYTHONHOME="$GMVAULT_HOME/lib/python-lib"
50
    export PYTHONHOME="$GMVAULT_HOME/lib/python-lib"
51
51
52
elif [ -f "$GMVAULT_HOME/bin/python" ]; then
53
    #installed from src distribution (python bin is in the same dir as gmvault script)
54
    PYTHON_BIN="$GMVAULT_HOME/bin/python"
55
56
else
52
else
57
    #look for python2.7 first otherwise try python2.6
53
    #look for python2.7 first otherwise try python2.6
58
    PYTHON_BIN=`which python2.7 2>/dev/null`
54
    PYTHON_BIN=`which python2.7 2>/dev/null`
59
    if [ ! $PYTHON_BIN ]; then
55
    if [ ! $PYTHON_BIN ]; then
60
       PYTHON_BIN=`which python2.6 2>/dev/null`
56
       PYTHON_BIN=`which python2.6 2>/dev/null`
61
    fi 
57
    fi 
62
63
    echo "Odd. Use default python2.7.x or 2.6.x distribution."
64
fi
58
fi
65
59
66
if [ ! "$PYTHON_BIN" ] || [ ! -f "$PYTHON_BIN" ]; then
60
if [ ! "$PYTHON_BIN" ] || [ ! -f "$PYTHON_BIN" ]; then

Return to bug 482798