Skip to content

Instantly share code, notes, and snippets.

@carlosm3011
Created November 19, 2015 21:07
Show Gist options
  • Save carlosm3011/9dad543d375e84913f41 to your computer and use it in GitHub Desktop.
Save carlosm3011/9dad543d375e84913f41 to your computer and use it in GitHub Desktop.
run.sh for setting env variables for python apps
#!/bin/bash
####################################################################
# Python wrapper - sets env variables appropiately
# v2 - 20151109
####################################################################
# change this PYTHON variable if using an alternative python
# interpreter
PYTHON="/usr/bin/python"
export SRCHOME=$(pwd)
####
export PYTHONPATH="$SRCHOME/lib:$SRCHOME/bin:$PYTHONPATH"
$PYTHON $*
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment