#!/bin/bash # # This wrapper is required to execute python scripts that utilize the # lp_solve library. We can't set LD_LIBRARY_PATH from within the # python script itself, so this wrapper simply sets it before # executing the script. # export LD_LIBRARY_PATH="${LD_LIBRARY_PATH}:../lib/lp_solve" # Run all but the first command-line argument. This should # execute the python script, followed by all of its arguments. python $*