17 lines
406 B
Python
17 lines
406 B
Python
from pathlib import Path
|
|
|
|
from iottb import definitions
|
|
import logging
|
|
from iottb.utils.user_interaction import tb_echo
|
|
import click
|
|
|
|
click.echo = tb_echo # This is very hacky
|
|
logging.basicConfig(level=definitions.LOGLEVEL)
|
|
log_dir = definitions.LOGDIR
|
|
# Ensure logs dir exists before new handlers are registered in main.py
|
|
if not log_dir.is_dir():
|
|
log_dir.mkdir()
|
|
|
|
DOCS_FOLDER = Path.cwd() / 'docs'
|
|
|