diff --git a/Web_app/pages/MoviePol.py b/Web_app/pages/MoviePol.py index 447226a1..b46ec8c2 100644 --- a/Web_app/pages/MoviePol.py +++ b/Web_app/pages/MoviePol.py @@ -3,7 +3,7 @@ import os # Path to the poll movies file -movies_file = "pollmovies.csv" +movies_file = os.path.join(os.path.dirname(__file__), "..", "pollmovies.csv") # Load movies from pollmovies.csv if it exists if os.path.exists(movies_file):