From 48ad97de2c98f9719bb1b70a5a228a63bbdc2f48 Mon Sep 17 00:00:00 2001 From: wattygetlood <61716739+wattygetlood@users.noreply.github.com> Date: Thu, 16 Sep 2021 16:34:43 -0400 Subject: [PATCH] Fix default `brokers.toml` copying since module move --- piker/config.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/piker/config.py b/piker/config.py index 70d9c9c5..93a47378 100644 --- a/piker/config.py +++ b/piker/config.py @@ -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, )