Added warning if old files are in rendered_root
This commit is contained in:
parent
4db530ebf7
commit
8bbea2254f
|
@ -61,6 +61,8 @@ class Verdandi(object):
|
||||||
def render(self):
|
def render(self):
|
||||||
if not os.path.exists(self.output_directory):
|
if not os.path.exists(self.output_directory):
|
||||||
os.mkdir(self.output_directory)
|
os.mkdir(self.output_directory)
|
||||||
|
if os.listdir(self.output_directory) != []:
|
||||||
|
print "[Warn] Ouput directory is not empty"
|
||||||
for module in self.modules:
|
for module in self.modules:
|
||||||
module.render(self.output_directory, self.jinja_env)
|
module.render(self.output_directory, self.jinja_env)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue