blob: fc6e9998affe6341ca72439d32ee0b4124adc167 [file] [log] [blame]
#!/bin/bash
# Copyright (c) 2014 The Native Client Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
# Wrapper for system python that first set PYTHONUSERBASE so that
# the python modules installed via pip (during glclient runhooks)
# are accessible.
SCRIPT_DIR=$(cd $(dirname "$BASH_SOURCE") && pwd)
export PYTHONPATH="${PYTHONPATH}:${SCRIPT_DIR}:$(dirname ${SCRIPT_DIR})/lib"
export PYTHONUSERBASE="$(dirname $SCRIPT_DIR)/out/pip"
exec python $*