From f86d07998a2a80fcf9e69cca9d89c2ca4d982e02 Mon Sep 17 00:00:00 2001 From: Brian Anderson Date: Fri, 3 Jan 2014 11:41:15 -0800 Subject: [PATCH] Fix windows dist script In copying the license for the third-party bins it is attempting to delete a directory that doesn't exist. --- src/etc/copy-runtime-deps.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/etc/copy-runtime-deps.py b/src/etc/copy-runtime-deps.py index 16155a99b690..4f4949e3c88b 100644 --- a/src/etc/copy-runtime-deps.py +++ b/src/etc/copy-runtime-deps.py @@ -10,7 +10,8 @@ def copy_runtime_deps(dest_dir): shutil.copy(path, dest_dir) lic_dest = os.path.join(dest_dir, "third-party") - shutil.rmtree(lic_dest) # copytree() won't overwrite existing files + if os.path.exists(lic_dest): + shutil.rmtree(lic_dest) # copytree() won't overwrite existing files shutil.copytree(os.path.join(os.path.dirname(__file__), "third-party"), lic_dest) copy_runtime_deps(sys.argv[1])