From 2ea1ceaeee2785702259c46b6e7d2ab02c24082b Mon Sep 17 00:00:00 2001 From: Dpeta Date: Wed, 7 Sep 2022 12:23:04 +0200 Subject: [PATCH] working directory fix --- pesterchum.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pesterchum.py b/pesterchum.py index 991757b..75ced63 100644 --- a/pesterchum.py +++ b/pesterchum.py @@ -11,6 +11,10 @@ import re 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