From adecc082ace8f561024aa5d50d404ee2fb811e08 Mon Sep 17 00:00:00 2001 From: Tyler Goodlet Date: Thu, 8 Feb 2018 02:25:10 -0500 Subject: [PATCH] Save `brokers.ini` in the user config dir using click --- piker/brokers/config.py | 3 ++- piker/log.py | 1 - 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/piker/brokers/config.py b/piker/brokers/config.py index 979e2605..ce302922 100644 --- a/piker/brokers/config.py +++ b/piker/brokers/config.py @@ -3,11 +3,12 @@ Broker configuration mgmt. """ from os import path import configparser +import click from ..log import get_logger log = get_logger('broker-config') -_broker_conf_path = path.join(path.dirname(__file__), 'brokers.ini') +_broker_conf_path = path.join(click.get_app_dir('piker'), 'brokers.ini') def load() -> (configparser.ConfigParser, str): diff --git a/piker/log.py b/piker/log.py index a849dbce..3bef481c 100644 --- a/piker/log.py +++ b/piker/log.py @@ -1,6 +1,5 @@ """ Log like a forester! -(You can't usually find stupid suits in the forest) """ import sys import logging