X-Git-Url: http://gitweb.michael.orlitzky.com/?a=blobdiff_plain;f=bin%2Flp_solve_wrapper;fp=bin%2Flp_solve_wrapper;h=c7d2bd78a66b527d6e04896c629e12899bbeeb91;hb=e3d9f4af0cbcbe3c73dac7e267d63a9392448fb8;hp=0000000000000000000000000000000000000000;hpb=bb72622a6f659dfc728b73dde94db985a2d7b589;p=dead%2Fcensus-tools.git diff --git a/bin/lp_solve_wrapper b/bin/lp_solve_wrapper new file mode 100755 index 0000000..c7d2bd7 --- /dev/null +++ b/bin/lp_solve_wrapper @@ -0,0 +1,13 @@ +#!/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 $*