]> gitweb.michael.orlitzky.com - dead/census-tools.git/blob - bin/lp_solve_wrapper
Add a wrapper which sets the LD_LIBRARY_PATH for lp_solve before executing a python...
[dead/census-tools.git] / bin / lp_solve_wrapper
1 #!/bin/bash
2 #
3 # This wrapper is required to execute python scripts that utilize the
4 # lp_solve library. We can't set LD_LIBRARY_PATH from within the
5 # python script itself, so this wrapper simply sets it before
6 # executing the script.
7 #
8
9 export LD_LIBRARY_PATH="${LD_LIBRARY_PATH}:../lib/lp_solve"
10
11 # Run all but the first command-line argument. This should
12 # execute the python script, followed by all of its arguments.
13 python $*