Moved warning to right place
This commit is contained in:
parent
0fdaf3917e
commit
d76f183cff
|
@ -55,6 +55,10 @@ class Verdandi(object):
|
||||||
|
|
||||||
|
|
||||||
def collect_assets(self):
|
def collect_assets(self):
|
||||||
|
if not os.path.exists(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.collect_assets(self.output_directory)
|
module.collect_assets(self.output_directory)
|
||||||
|
|
||||||
|
@ -62,8 +66,6 @@ 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