Fix default `brokers.toml` copying since module move

windows_fixes_yo
wattygetlood 2021-09-16 16:34:43 -04:00 committed by wattygetlood
parent 2ebdf008da
commit c0082e15bc
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,
)