From c2155edb66828c3137bd32f4d93968b332ce259a Mon Sep 17 00:00:00 2001 From: RogueLogix Date: Tue, 27 Feb 2024 10:59:17 -0800 Subject: [PATCH] check for client run directory before attempting to delete it --- runTests.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/runTests.py b/runTests.py index ffe60cc..0519900 100644 --- a/runTests.py +++ b/runTests.py @@ -29,7 +29,8 @@ if __name__ == '__main__': print(mainConfig) print(testConfig) - shutil.rmtree(runDirectory) + if os.path.exists(runDirectory): + shutil.rmtree(runDirectory) os.makedirs(configDirectory) mainConfigFile = open(configDirectory + mainConfigName, "w")