Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions marimo/_loggers.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import io
import logging
from contextlib import contextmanager
from functools import lru_cache
from logging.handlers import TimedRotatingFileHandler
from typing import TYPE_CHECKING, Optional

Expand Down Expand Up @@ -145,6 +146,7 @@ def marimo_logger() -> logging.Logger:
return logger


@lru_cache(maxsize=1)
def get_log_directory() -> Path:
from marimo._utils.xdg import marimo_log_dir

Expand Down
2 changes: 2 additions & 0 deletions marimo/_utils/paths.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
from __future__ import annotations

import os
from functools import lru_cache
from pathlib import Path
from typing import TYPE_CHECKING

Expand All @@ -15,6 +16,7 @@ def import_files(filename: str) -> Traversable:
return importlib_files(filename)


@lru_cache(maxsize=1)
def marimo_package_path() -> Path:
return Path(str(import_files("marimo")))

Expand Down