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
|
from os import path
|
||||||
import configparser
|
import configparser
|
||||||
|
import click
|
||||||
from ..log import get_logger
|
from ..log import get_logger
|
||||||
|
|
||||||
log = get_logger('broker-config')
|
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):
|
def load() -> (configparser.ConfigParser, str):
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
"""
|
"""
|
||||||
Log like a forester!
|
Log like a forester!
|
||||||
(You can't usually find stupid suits in the forest)
|
|
||||||
"""
|
"""
|
||||||
import sys
|
import sys
|
||||||
import logging
|
import logging
|
||||||
|
|
Loading…
Reference in New Issue