awips2/cave/com.raytheon.viz.avnconfig/localization/aviation/TestTafDecoder.sh
Max Schenkelberg c5575f9624 Issue #2033 moved avnfps and text workstation files into respective plugins.
Change-Id: If95cb839ad81ca2a842ff7f6926847ac3928d8f2

Former-commit-id: 77e1a4d8f5237e5fae930c1e00589c752f8b3738
2013-08-15 12:21:43 -05:00

25 lines
633 B
Bash
Executable file

#! /bin/bash
# Wrapper for TafDecoderTestsA2.py that sets $LD_LIBRARY_PATH and $PATH
# Query the system to see if awips2-python rpm is installed
pypath="/awips2/python"
# Check the return code
if [ ! -d /awips2/python ]
then
echo "Please install the awips2-python rpm."
exit 1
fi
# Add correct python to the PATH
echo "Adding $pypath/bin to PATH"
export PATH=$pypath/bin:$PATH
# Add correct python to the LD_LIBRARY_PATH
echo "Adding $pypath/lib to LD_LIBRARY_PATH"
export LD_LIBRARY_PATH=$pypath/lib:$LD_LIBRARY_PATH
# Run TafDecoderTestsA2.py
echo "Running TafDecoderTestsA2.py..."
python python/TafDecoderTestsA2.py