mirror of
https://github.com/archlinux-jerry/buildbot
synced 2024-11-24 05:50:41 +08:00
client.py: change dir first
This commit is contained in:
parent
df56fb73d7
commit
091b697967
1 changed files with 4 additions and 3 deletions
|
@ -8,6 +8,10 @@ import os
|
||||||
from multiprocessing.connection import Client
|
from multiprocessing.connection import Client
|
||||||
from time import sleep
|
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, \
|
from config import REPOD_BIND_ADDRESS, REPOD_BIND_PASSWD, \
|
||||||
MASTER_BIND_ADDRESS, MASTER_BIND_PASSWD, \
|
MASTER_BIND_ADDRESS, MASTER_BIND_PASSWD, \
|
||||||
CONSOLE_LOGFILE, MAIN_LOGFILE
|
CONSOLE_LOGFILE, MAIN_LOGFILE
|
||||||
|
@ -16,9 +20,6 @@ from utils import print_exc_plus
|
||||||
|
|
||||||
logger = logging.getLogger(f'buildbot.{__name__}')
|
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)):
|
def run(funcname, args=list(), kwargs=dict(), retries=0, server=(REPOD_BIND_ADDRESS, REPOD_BIND_PASSWD)):
|
||||||
try:
|
try:
|
||||||
|
|
Loading…
Reference in a new issue