Nexora-Encoder / app /config.py
ChandimaPrabath's picture
thread dict
d31b48e
import os
from pathlib import Path
# Base directory
BASE_DIR = Path(__file__).resolve().parent.parent
# Flask configuration
DEBUG = True
SECRET_KEY = os.getenv('SECRET_KEY', 'your-secret-key-here')
# File upload configuration
UPLOAD_FOLDER = os.getenv('UPLOAD_FOLDER', BASE_DIR / 'uploads')
ENCODED_FOLDER = os.getenv('ENCODED_FOLDER', BASE_DIR / 'encoded')
# Create required directories
Path(UPLOAD_FOLDER).mkdir(parents=True, exist_ok=True)
Path(ENCODED_FOLDER).mkdir(parents=True, exist_ok=True)