diff --git a/fresh_tomatoes.py b/fresh_tomatoes.py index 5cd75599c..81bddcd34 100644 --- a/fresh_tomatoes.py +++ b/fresh_tomatoes.py @@ -152,7 +152,7 @@ def create_movie_tiles_content(movies): def open_movies_page(movies): # Create or overwrite the output file - output_file = open('fresh_tomatoes.html', 'w') + output_file = open(os.path.join(os.path.dirname(__file__), 'fresh_tomatoes.html'), 'w') # Replace the movie tiles placeholder generated content rendered_content = main_page_content.format(