Create display root before symlink css

This commit is contained in:
Gregory Soutade 2014-12-14 15:28:12 +01:00
parent 3a246d5cd6
commit 3c5f117870
1 changed files with 2 additions and 0 deletions

View File

@ -312,6 +312,8 @@ class DisplayHTMLBuild(object):
def build(self, root):
display_root = self.iwla.getConfValue('DISPLAY_ROOT', '')
if not os.path.exists(display_root):
os.makedirs(display_root)
for res_path in self.iwla.getResourcesPath():
target = os.path.abspath(res_path)
link_name = os.path.join(display_root, res_path)