diff --git a/blog/routes.py b/blog/routes.py
index a14298aa9d600726b3ec25632065741893327ad1..049ba45f16916b4b618618a2d31b41b990fc5d2b 100644
--- a/blog/routes.py
+++ b/blog/routes.py
@@ -25,7 +25,7 @@ def cv():
 
 @app.route('/download')
 def download():
-  file_path = os.path.join(os.getcwd(), "blog", "static", "pdf", "cv.pdf")
+  file_path = os.path.join(os.path.abspath(os.path.dirname(__file__)), "static", "pdf", "cv.pdf")
   return send_file(file_path, as_attachment=True)
 
 @app.route("/blog")