diff --git a/prosopopee/prosopopee.py b/prosopopee/prosopopee.py index 3551be7..12737e1 100644 --- a/prosopopee/prosopopee.py +++ b/prosopopee/prosopopee.py @@ -66,7 +66,8 @@ def main(): os.makedirs("build") # XXX recursively merge directories - shutil.rmtree(os.path.join(os.getcwd(), "build", "static")) + if os.path.exists(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")) for gallery in dirs: