fix path for downlaod of md file

This commit is contained in:
dechert 2021-06-17 19:42:40 +02:00
parent 464e8f87ab
commit 6c99e372a9

View File

@ -34,6 +34,7 @@ URL_BASE_PATH = "/"
import config_parser
UPLOAD_FODLER = config_parser.upload_path
OUTPUT_FODLER = config_parser.output_path
# @app.route(URL_BASE_PATH + 'home', methods=['GET'])
# # @auth.login_required
@ -121,7 +122,7 @@ def download_file():
"""Download the .md file."""
# print("sending file with name: " + filename)
current_dir = os.getcwd()
full_dir = os.path.join(current_dir, "output")
full_dir = os.path.join(current_dir, OUTPUT_FODLER)
print("full_dir: " + full_dir)
return send_from_directory(full_dir, "slide-deck.md", as_attachment=True)\