« first day (2074 days earlier)      last day (1504 days later) » 

08:59
#flask_app.py
from pdf_report import generate_pdf
generate_pdf()

Good morning/afternoon/evening everyone! Could you give me an opinion on this matter? I am calling the generate_pdf function from the flask_app.py file. The function produces a PDF file, but it needs the files/icon.png file to do so. Since, the working directory is /webapp, the function cannot find the files/icon.png file. What approach should I take to solve this?

app/
pdf_report.py
files/
icon.png
webapp/
flask_app.py
/templates
1 message moved from Python

« first day (2074 days earlier)      last day (1504 days later) »