Allow running from other directories`

This commit is contained in:
Kiooeht 2011-11-20 14:42:49 -08:00
parent d525790897
commit d1ecdb2a38
2 changed files with 4 additions and 1 deletions

View file

@ -1,3 +1,4 @@
#!/bin/sh #!/bin/sh
cd `dirname $0`
python2.6 pesterchum.py $@ python2.6 pesterchum.py $@

View file

@ -1,8 +1,10 @@
# pesterchum # pesterchum
import os, sys, getopt
if os.path.dirname(sys.argv[0]):
os.chdir(os.path.dirname(sys.argv[0]))
import version import version
version.pcVerCalc() version.pcVerCalc()
import logging import logging
import os, sys, getopt
from datetime import * from datetime import *
import random import random
import re import re