CC-2016: Rearrange python scripts for reusability

-fixed path issue that was happening on some systems
This commit is contained in:
martin 2011-03-24 14:01:16 -04:00
parent c254422f72
commit 17181674b7
5 changed files with 14 additions and 7 deletions

View file

@ -4,4 +4,11 @@
# needed here to keep dirs/configs clean #
# and maybe to set user-rights #
############################################
cd ../ && ./pypo-notify.py $1 $2 $3 $4 $5 $6 $7 $8 &
pwd
# Absolute path to this script
SCRIPT=`readlink -f $0`
# Absolute path this script is in
SCRIPTPATH=`dirname $SCRIPT`
cd ${SCRIPTPATH}/../ && ./pypo-notify.py $1 $2 $3 $4 $5 $6 $7 $8 &