First Production Push
This commit is contained in:
@@ -7,11 +7,12 @@ from typing import List, Optional
|
||||
from builder import database as db
|
||||
from builder.models import BuiltMelodyCreate, BuiltMelodyUpdate, BuiltMelodyInDB
|
||||
from fastapi import HTTPException
|
||||
from config import settings
|
||||
|
||||
logger = logging.getLogger("builder.service")
|
||||
|
||||
# Storage directory for built .bsm files
|
||||
STORAGE_DIR = Path(__file__).parent.parent / "storage" / "built_melodies"
|
||||
# Storage directory for built .bsm files — configurable via BUILT_MELODIES_STORAGE_PATH env var
|
||||
STORAGE_DIR = Path(settings.built_melodies_storage_path)
|
||||
|
||||
|
||||
def _ensure_storage_dir():
|
||||
|
||||
Reference in New Issue
Block a user