From 36da9d7a4a420ec663ec714a8417dbfca1476083 Mon Sep 17 00:00:00 2001 From: Gary Talent Date: Fri, 28 Aug 2020 18:57:21 -0500 Subject: [PATCH] [nostalgia] Cleanup setup-build script --- scripts/setup-build | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/scripts/setup-build b/scripts/setup-build index 2c250770..fa21b9f1 100755 --- a/scripts/setup-build +++ b/scripts/setup-build @@ -8,19 +8,15 @@ target = sys.argv[1] build_type = sys.argv[2] vcpkg_dir = sys.argv[3] -project = os.getcwd() + '/' +project = os.getcwd() def mkdir(path): - try: + if not os.path.exists(path) and os.path.isdir(path): os.mkdir(path) - except: - pass def rm(path): - try: + if os.path.exists(path) or os.path.islink(path): os.remove(path) - except: - pass if target == 'gba': toolchain = '-DCMAKE_TOOLCHAIN_FILE=cmake/modules/GBA.cmake'