Fix default `brokers.toml` copying since module move

windows_testing_volume
wattygetlood 2021-09-16 16:34:43 -04:00 committed by Tyler Goodlet
parent 25eb6f0087
commit 48ad97de2c
1 changed files with 2 additions and 2 deletions

View File

@ -60,7 +60,7 @@ def repodir():
"""
dirpath = os.path.abspath(
# we're 3 levels down in **this** module file
dirname(dirname(dirname(os.path.realpath(__file__))))
dirname(dirname(os.path.realpath(__file__)))
)
return dirpath
@ -73,7 +73,7 @@ def load(
path = path or get_broker_conf_path()
if not os.path.isfile(path):
shutil.copyfile(
os.path.join(repodir(), 'data/brokers.toml'),
os.path.join(repodir(), 'config', 'brokers.toml'),
path,
)