1
0
Fork 0
mirror of https://gitlab.wikimedia.org/ladsgroup/Phabricator-maintenance-bot synced 2024-11-22 12:02:38 +01:00

Fix path for gerrit-creds.json

It's erroring now
This commit is contained in:
Amir Sarabadani 2020-08-24 11:36:21 +02:00
parent 1d784027bb
commit 7ace1cb220

View file

@ -23,7 +23,8 @@ from contextlib import contextmanager
import requests import requests
with open('gerrit-creds.json', 'r') as f: dir_path = os.path.dirname(os.path.realpath(__file__))
with open(os.path.join(dir_path, 'gerrit-creds.json'), 'r') as f:
creds = json.loads(f.read()) creds = json.loads(f.read())