FitTrackee/fittrackee_api/fittrackee_api/activities/utils_files.py

8 lines
162 B
Python

import os
from flask import current_app
def get_absolute_file_path(relative_path):
return os.path.join(current_app.config['UPLOAD_FOLDER'], relative_path)