Skip to content
Snippets Groups Projects
Commit bed3bccb authored by Ray Garcia's avatar Ray Garcia :scream_cat:
Browse files

updated hcast2scmi.sh to use PYTHON optional env and setup.py installed module

parent faaa5d5a
No related branches found
No related merge requests found
...@@ -16,9 +16,10 @@ SOURCE="${BASH_SOURCE[0]}" ...@@ -16,9 +16,10 @@ SOURCE="${BASH_SOURCE[0]}"
# while [ -h "$SOURCE" ] ; do SOURCE="$(readlink "$SOURCE")"; done # while [ -h "$SOURCE" ] ; do SOURCE="$(readlink "$SOURCE")"; done
BASE="$( cd -P "$( dirname "$SOURCE" )" && pwd )" BASE="$( cd -P "$( dirname "$SOURCE" )" && pwd )"
test -x "$PYTHON" || PYTHON=${BASE}/ShellB3/bin/python
# environment settings # environment settings
export PYTHONPATH=${BASE}/himawari/py # export PYTHONPATH=${BASE}/himawari/py
export PATH=${BASE}/ShellB3/bin:$PATH # export PATH=${BASE}/ShellB3/bin:$PATH
unset LD_LIBRARY_PATH unset LD_LIBRARY_PATH
unset LD_PRELOAD unset LD_PRELOAD
...@@ -41,7 +42,7 @@ set -x ...@@ -41,7 +42,7 @@ set -x
# execute on multiple scenes in parallel, writing output to CWD # execute on multiple scenes in parallel, writing output to CWD
for scene in "$@"; do for scene in "$@"; do
${BASE}/ShellB3/bin/python -m scmi -v "$scene" $(additional_args "$scene") & $PYTHON -m himawari.scmi -v "$scene" $(additional_args "$scene") &
echo ">>> started processing job for $scene" echo ">>> started processing job for $scene"
done done
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment