diff --git a/pesterchum b/pesterchum index f351cb8..3ea92a5 100755 --- a/pesterchum +++ b/pesterchum @@ -1,3 +1,4 @@ #!/bin/sh +cd `dirname $0` python2.6 pesterchum.py $@ diff --git a/pesterchum.py b/pesterchum.py index ff8cbb7..1b050e0 100644 --- a/pesterchum.py +++ b/pesterchum.py @@ -1,8 +1,10 @@ # pesterchum +import os, sys, getopt +if os.path.dirname(sys.argv[0]): + os.chdir(os.path.dirname(sys.argv[0])) import version version.pcVerCalc() import logging -import os, sys, getopt from datetime import * import random import re