[fix] won't work if dir doesn't exists
This commit is contained in:
parent
6ee2d9406b
commit
dae6852fb0
@ -66,6 +66,7 @@ def main():
|
|||||||
os.makedirs("build")
|
os.makedirs("build")
|
||||||
|
|
||||||
# XXX recursively merge directories
|
# XXX recursively merge directories
|
||||||
|
if os.path.exists(os.path.join(os.getcwd(), "build", "static")):
|
||||||
shutil.rmtree(os.path.join(os.getcwd(), "build", "static"))
|
shutil.rmtree(os.path.join(os.getcwd(), "build", "static"))
|
||||||
shutil.copytree(os.path.join(os.path.split(os.path.realpath(__file__))[0], "static"), os.path.join(os.getcwd(), "build", "static"))
|
shutil.copytree(os.path.join(os.path.split(os.path.realpath(__file__))[0], "static"), os.path.join(os.getcwd(), "build", "static"))
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user