fix path for downlaod of md file
This commit is contained in:
parent
464e8f87ab
commit
6c99e372a9
@ -34,6 +34,7 @@ URL_BASE_PATH = "/"
|
|||||||
import config_parser
|
import config_parser
|
||||||
|
|
||||||
UPLOAD_FODLER = config_parser.upload_path
|
UPLOAD_FODLER = config_parser.upload_path
|
||||||
|
OUTPUT_FODLER = config_parser.output_path
|
||||||
|
|
||||||
# @app.route(URL_BASE_PATH + 'home', methods=['GET'])
|
# @app.route(URL_BASE_PATH + 'home', methods=['GET'])
|
||||||
# # @auth.login_required
|
# # @auth.login_required
|
||||||
@ -121,7 +122,7 @@ def download_file():
|
|||||||
"""Download the .md file."""
|
"""Download the .md file."""
|
||||||
# print("sending file with name: " + filename)
|
# print("sending file with name: " + filename)
|
||||||
current_dir = os.getcwd()
|
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)
|
print("full_dir: " + full_dir)
|
||||||
return send_from_directory(full_dir, "slide-deck.md", as_attachment=True)\
|
return send_from_directory(full_dir, "slide-deck.md", as_attachment=True)\
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user