Save `brokers.ini` in the user config dir using click

kivy_mainline_and_py3.8
Tyler Goodlet 2018-02-08 02:25:10 -05:00
parent 151e7bf4fa
commit adecc082ac
2 changed files with 2 additions and 2 deletions

View File

@ -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):

View File

@ -1,6 +1,5 @@
"""
Log like a forester!
(You can't usually find stupid suits in the forest)
"""
import sys
import logging