diff --git a/pesterchum.py b/pesterchum.py index 991757be..75ced63f 100644 --- a/pesterchum.py +++ b/pesterchum.py @@ -11,6 +11,10 @@ import time import json +# Set working directory +if os.path.dirname(sys.argv[0]): + os.chdir(os.path.dirname(sys.argv[0])) + import ostools import nickservmsgs import pytwmn