FitTrackee/fittrackee/workouts/utils_files.py

8 lines
174 B
Python
Raw Normal View History

import os
from flask import current_app
2021-01-02 19:28:03 +01:00
def get_absolute_file_path(relative_path: str) -> str:
return os.path.join(current_app.config['UPLOAD_FOLDER'], relative_path)