Allow running from other directories`
This commit is contained in:
parent
d525790897
commit
d1ecdb2a38
2 changed files with 4 additions and 1 deletions
|
@ -1,3 +1,4 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
|
cd `dirname $0`
|
||||||
python2.6 pesterchum.py $@
|
python2.6 pesterchum.py $@
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue