Skip to content

Commit 76d8af6

Browse files
authored
Merge pull request #3397 from rommapp/tolerate-launchbox-basepath
Tolerate launchbox basepath
2 parents ce20d40 + 94d011e commit 76d8af6

2 files changed

Lines changed: 3 additions & 4 deletions

File tree

backend/config/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,7 @@ def _get_env(var: str, fallback: str | None = None) -> str | None:
8989
)
9090

9191
# LAUNCHBOX
92+
LAUNCHBOX_BASE_PATH: Final[str] = f"{ROMM_BASE_PATH}/launchbox"
9293
LAUNCHBOX_API_ENABLED: Final[bool] = safe_str_to_bool(_get_env("LAUNCHBOX_API_ENABLED"))
9394

9495
# PLAYMATCH
Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
1-
from pathlib import Path
2-
3-
from config import ROMM_BASE_PATH
1+
from config import LAUNCHBOX_BASE_PATH
42
from handler.filesystem.base_handler import FSHandler
53

64

75
class FSLaunchboxHandler(FSHandler):
86
def __init__(self) -> None:
9-
super().__init__(base_path=str(Path(ROMM_BASE_PATH) / "launchbox"))
7+
super().__init__(base_path=LAUNCHBOX_BASE_PATH, tolerate_missing_base=True)

0 commit comments

Comments
 (0)