Merge pull request #30 from abeudin/master

[fix] enable add static files
This commit is contained in:
Laurent Peuch 2016-02-20 03:42:57 +01:00
commit a1f174990e

View File

@ -118,6 +118,9 @@ def main():
# XXX recursively merge directories
if os.path.exists(os.path.join(os.getcwd(), "build", "static")):
shutil.rmtree(os.path.join(os.getcwd(), "build", "static"))
if os.path.exists(os.path.join(os.getcwd(), "static")):
shutil.copytree(os.path.join(os.getcwd(), "static"), os.path.join(os.getcwd(), "build", "static"))
else:
shutil.copytree(os.path.join(os.path.split(os.path.realpath(__file__))[0], "static"), os.path.join(os.getcwd(), "build", "static"))
for gallery in dirs: