sbsv2/raptor/bin/sbs_filter
branchwip
changeset 124 e898967975af
parent 117 ecf683438dc6
child 125 dc823469fda2
equal deleted inserted replaced
123:b748fbcd9079 124:e898967975af
    76 
    76 
    77 # call sbs_filter.py with the arguments
    77 # call sbs_filter.py with the arguments
    78 
    78 
    79 FILTER_START="$SBS_HOME/bin/sbs_filter.py"
    79 FILTER_START="$SBS_HOME/bin/sbs_filter.py"
    80 
    80 
       
    81 STATE=0
    81 if [ -e "$FILTER_START" ]; then
    82 if [ -e "$FILTER_START" ]; then
    82 	# run the source version
    83 	# run the source version
    83 	${__PYTHON__} "$FILTER_START" "$@"
    84 	${__PYTHON__} "$FILTER_START" "$@"
    84 elif [ -e "$FILTER_START"c ]; then
    85 elif [ -e "$FILTER_START"c ]; then
    85 	# run the compiled version
    86 	# run the compiled version
    86 	${__PYTHON__} "$FILTER_START"c "$@"
    87 	${__PYTHON__} "$FILTER_START"c "$@"
    87 else
    88 else
    88 	echo "Cannot start sbs_filter - $FILTER_START not found." 1>&2
    89 	echo "Cannot start sbs_filter - $FILTER_START not found." 1>&2
    89 	echo "Check your SBS_HOME environment variable." 1>&2
    90 	echo "Check your SBS_HOME environment variable." 1>&2
    90 fi
    91 fi
       
    92