Tomas Zulberti committed 55e6e39

Solved two bugs:
1) Deleted the folder when forced
2) Copy the tapa_revista.rst template

Comments (0)

Files changed (1)


 import os
-from shutil import copy, copytree
+from shutil import copy, copytree, rmtree
 from pet_builder import settings
 from pet_builder.utils import copy_render_template, create_folders
                   folders and templates will be replaced.
     if force and os.path.exists(settings.pet_folder):
-        os.rmdir(settings.pet_folder)
+        rmtree(settings.pet_folder)
     elif os.path.exists(settings.pet_folder):
         # if the path, already exists, then it isn't require to
             final_makefile_path = os.path.join(current_pdf_folder, 'Makefile')
             additional_values = dict(rst2pdf_params = rst2pdf_params, pdf_format = folder_name)
             copy_render_template('makefiles/pdf.makefile', final_makefile_path, additional_values)
+            copy_render_template('pdf/tapa_revista.rst', current_pdf_folder)
             # create the style
             styles_folder = os.path.join(current_pdf_folder, 'styles')
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.