Permalink
Browse files

Don't remove output directory tree before generating again, no point …

…and it screws up things like git submodules.
  • Loading branch information...
1 parent bb77e1a commit 0f2b45556b42e95035c73cee8f2ce4c6997ba587 @joshourisman committed Mar 28, 2012
Showing with 0 additions and 5 deletions.
  1. +0 −5 rabbitfish/jug.py
View
@@ -1,5 +1,3 @@
-import os
-import shutil
import yaml
from pages import Page, DynamicPage, ListPage
@@ -22,9 +20,6 @@ def load_configuration(self, config_file):
self.dynamic_pages[page.name] = page
def generate(self):
- if os.path.exists('output'):
- shutil.rmtree('output')
-
for page in self.pages:
if type(page) is ListPage:
page.render_to_output(self.dynamic_pages)

0 comments on commit 0f2b455

Please sign in to comment.