client.py: change dir first

This commit is contained in:
JerryXiao 2019-09-08 17:14:43 +08:00
parent df56fb73d7
commit 091b697967
Signed by: Jerry
GPG key ID: 9D9CE43650FF2BAA

View file

@ -8,6 +8,10 @@ import os
from multiprocessing.connection import Client
from time import sleep
abspath=os.path.abspath(__file__)
abspath=os.path.dirname(abspath)
os.chdir(abspath)
from config import REPOD_BIND_ADDRESS, REPOD_BIND_PASSWD, \
MASTER_BIND_ADDRESS, MASTER_BIND_PASSWD, \
CONSOLE_LOGFILE, MAIN_LOGFILE
@ -16,9 +20,6 @@ from utils import print_exc_plus
logger = logging.getLogger(f'buildbot.{__name__}')
abspath=os.path.abspath(__file__)
abspath=os.path.dirname(abspath)
os.chdir(abspath)
def run(funcname, args=list(), kwargs=dict(), retries=0, server=(REPOD_BIND_ADDRESS, REPOD_BIND_PASSWD)):
try: