PageRenderTime 10ms CodeModel.GetById 6ms RepoModel.GetById 0ms 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
  2. SCRIPT_DIR=`dirname $0`
  3. GOOGLECL_DIR=`cd $SCRIPT_DIR; pwd`
  4. if [[ "$PYTHONPATH" =~ "$GOOGLECL_DIR" ]]
  5. then
  6. export PYTHONPATH=${PYTHONPATH/:$GOOGLECL_DIR}
  7. else
  8. export PYTHONPATH=$PYTHONPATH:$GOOGLECL_DIR
  9. fi
  10. echo Changed PYTHONPATH to $PYTHONPATH