Save `brokers.ini` in the user config dir using click
parent
151e7bf4fa
commit
adecc082ac
|
@ -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):
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
"""
|
||||
Log like a forester!
|
||||
(You can't usually find stupid suits in the forest)
|
||||
"""
|
||||
import sys
|
||||
import logging
|
||||
|
|
Loading…
Reference in New Issue