From b3ff2d763478e46e9127e5c868ad7958b4e7b03f Mon Sep 17 00:00:00 2001 From: cranticumar Date: Sat, 5 Sep 2015 01:37:12 +0530 Subject: [PATCH] it saves file in same folder for all IDEs Also another defect that I observed is, if there is movie with title name that goes into 2 lines (or) more character in first row, second row tiles are getting disturbed --- fresh_tomatoes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(