#!/bin/sh
#
# This script is a part of FreeUSP - the UNIX Seismic Processing system.
#
APP_PATH=`dirname $1` ; test "${APP_PATH}" = "." && APP_PATH=`pwd`
APP_PATH=`echo ${APP_PATH} | /bin/sed 's/[/]tmp_mnt//' | /bin/sed 's/[/][^/]*$//'`
echo ${APP_PATH}
