From a60fb89a4595d6c493c71ccee4f1bde85309d987 Mon Sep 17 00:00:00 2001 From: Godwin Ani Date: Thu, 24 Aug 2023 14:46:32 -0400 Subject: [PATCH] output folder error solved --- Utilities/for_fastas/GuidanceWrapper_v2.1.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Utilities/for_fastas/GuidanceWrapper_v2.1.py b/Utilities/for_fastas/GuidanceWrapper_v2.1.py index 1078103..30d05da 100644 --- a/Utilities/for_fastas/GuidanceWrapper_v2.1.py +++ b/Utilities/for_fastas/GuidanceWrapper_v2.1.py @@ -34,9 +34,7 @@ args = parser.parse_args() #Creating an output folder if not os.path.isdir(args.output + '/GuidanceOutput'): os.mkdir(args.output + '/GuidanceOutput') -elif args.force: - os.system('rm -r ' + args.output + '/GuidanceOutput/*') -else: +elif not args.force: print('\nERROR: An output folder already exists at the given path. Delete it or run in --force mode\n') quit()