From 7e0755b367b7f75afb0479a8a8b041f5593d4d1c Mon Sep 17 00:00:00 2001 From: Aaron Siegel <2014957+aaron-siegel@users.noreply.github.com> Date: Thu, 11 Mar 2021 09:51:19 -0800 Subject: [PATCH] Tiny fix for bundle-puzzlecad target in admin.py --- scripts/admin.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/admin.py b/scripts/admin.py index 6616f39..0205577 100755 --- a/scripts/admin.py +++ b/scripts/admin.py @@ -346,7 +346,8 @@ def bundle_puzzlecad(version, run_tests = True): shutil.copy2('../src/main/scad/puzzlecad.scad', '../out/dist') shutil.copy2('../src/main/scad/puzzlecad-examples.scad', '../out/dist') shutil.copy2('../src/main/scad/dist/half-hour-example.scad', '../out/dist') - shutil.rmtree('../out/dist/puzzlecad') + if (os.path.exists('../out/dist/puzzlecad')): + shutil.rmtree('../out/dist/puzzlecad') shutil.copytree('../src/main/scad/puzzlecad', '../out/dist/puzzlecad') print('Creating archive ...')