equal
deleted
inserted
replaced
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 |