Parent Directory
|
Revision Log
Finished wrapper script by setting PATH. The wrapper script reproduces the environment of the person who built the software + values specified in his hostname_options.py file. A user can run a python script without setting any environment variables or loading any SGI modules.
1 | ksteube | 1756 | #!/bin/sh |
2 | |||
3 | # Create the finley wrapper script bin/finleypython | ||
4 | # by substituting @@VAR@@ for an env variable $VAR | ||
5 | |||
6 | PYTHON_CMD=`type python | sed -e 's/.* //'` | ||
7 | |||
8 | sed \ | ||
9 | -e "s%@@ESCRIPT_ROOT@@%$ESCRIPT_ROOT%" \ | ||
10 | -e "s%@@LD_LIBRARY_PATH@@%$LD_LIBRARY_PATH%" \ | ||
11 | -e "s%@@PYTHONPATH@@%$PYTHONPATH%" \ | ||
12 | -e "s%@@PYTHON_CMD@@%$PYTHON_CMD%" \ | ||
13 | ksteube | 1912 | -e "s%@@PATH@@%$PATH%" \ |
14 | ksteube | 1756 |
ViewVC Help | |
Powered by ViewVC 1.1.26 |