res_util.py 197 B

12345678910
  1. import os
  2. from app.config import settings
  3. def get_resources_path() -> str:
  4. local_path = settings.resources_path
  5. if os.path.isdir(local_path):
  6. return local_path
  7. return "/app"