mirror of
https://github.com/mwisnowski/mtg_python_deckbuilder.git
synced 2025-12-16 23:50:12 +01:00
feat(themes): whitelist governance, synergy cap, docs + tests; feat(random): laid roadwork for random implementation, testing in headless confirmed
This commit is contained in:
parent
03e839fb87
commit
16261bbf09
34 changed files with 12594 additions and 23 deletions
16
code/path_util.py
Normal file
16
code/path_util.py
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
from __future__ import annotations
|
||||
|
||||
import os
|
||||
|
||||
|
||||
def csv_dir() -> str:
|
||||
"""Return the base directory for CSV files.
|
||||
|
||||
Defaults to 'csv_files'. Override with CSV_FILES_DIR for tests or advanced setups.
|
||||
"""
|
||||
try:
|
||||
base = os.getenv("CSV_FILES_DIR")
|
||||
base = base.strip() if isinstance(base, str) else None
|
||||
return base or "csv_files"
|
||||
except Exception:
|
||||
return "csv_files"
|
||||
Loading…
Add table
Add a link
Reference in a new issue