init test commit
This commit is contained in:
12
trade-hub/backend/app/config.py
Normal file
12
trade-hub/backend/app/config.py
Normal file
@@ -0,0 +1,12 @@
|
||||
"""Configuration for the inventory backend.
|
||||
|
||||
DATA_DIR selects which dataset the API serves:
|
||||
- local dev / tests: small real-schema samples (default) or a fixture dir
|
||||
- container image: the full scunpacked dataset downloaded at build time
|
||||
"""
|
||||
import os
|
||||
|
||||
_APP_DIR = os.path.dirname(os.path.abspath(__file__))
|
||||
_BACKEND_DIR = os.path.dirname(_APP_DIR)
|
||||
|
||||
DATA_DIR = os.environ.get("DATA_DIR", os.path.join(_BACKEND_DIR, "data", "samples"))
|
||||
Reference in New Issue
Block a user