Skip to content

Commit

Permalink
Add root info to cli
Browse files Browse the repository at this point in the history
  • Loading branch information
relativityhd committed Oct 31, 2024
1 parent dbee74d commit 38c825f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion darts/src/darts/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
from darts.utils.config import ConfigParser
from darts.utils.logging import add_logging_handlers, setup_logging

root = Path(__name__).resolve()
logger = logging.getLogger(__name__)
console = Console()

Expand Down Expand Up @@ -61,7 +62,7 @@ def launcher( # noqa: D103
):
command, bound = app.parse_args(tokens)
add_logging_handlers(command.__name__, console, log_dir)
logger.debug(f"Running on Python version {sys.version}")
logger.debug(f"Running on Python version {sys.version} from {root}")
return command(*bound.args, **bound.kwargs)


Expand Down

0 comments on commit 38c825f

Please sign in to comment.