PageRenderTime 247ms CodeModel.GetById 105ms app.highlight 1ms RepoModel.GetById 140ms app.codeStats 0ms

/src/setpath.sh

http://googlecl.googlecode.com/
Shell | 11 lines | 9 code | 1 blank | 1 comment | 1 complexity | 0cab9a118dbcd35902a988d066793b7f MD5 | raw file
 1#!/bin/bash
 2SCRIPT_DIR=`dirname $0`
 3GOOGLECL_DIR=`cd $SCRIPT_DIR; pwd`
 4
 5if [[ "$PYTHONPATH" =~ "$GOOGLECL_DIR" ]]
 6then
 7  export PYTHONPATH=${PYTHONPATH/:$GOOGLECL_DIR}
 8else
 9  export PYTHONPATH=$PYTHONPATH:$GOOGLECL_DIR
10fi
11echo Changed PYTHONPATH to $PYTHONPATH