mirror of
https://github.com/Jylpah/blitz-tools.git
synced 2026-10-24 19:49:52 +02:00
do chdir() to read config files correctly
This commit is contained in:
1 parent
cd93f815bd
commit
b8546fabf9
3 files changed
+7
-1
No files matched your search
@@ -25,6 +25,8 @@ wi = None
|
||||
|
||||
async def main(argv):
|
||||
global wg, wi
|
||||
# set the directory for the script
|
||||
os.chdir(os.path.dirname(sys.argv[0]))
|
||||
|
||||
## Read config
|
||||
config = configparser.ConfigParser()
|
||||
|
||||
Reference in new issue
Block a user