Skip to content
Snippets Groups Projects
Commit 41a4c5e6 authored by Alex Rubinsteyn's avatar Alex Rubinsteyn
Browse files

handle overwrite correctly

parent 4c44b00c
No related branches found
No related tags found
No related merge requests found
......@@ -70,10 +70,10 @@ parser.add_argument(
if __name__ == "__main__":
args = parser.parse_args()
if exists(args.output_dir):
if args.overwrite:
rmtree(args.output_dir)
else:
if exists(args.output_dir) and args.overwrite:
rmtree(args.output_dir)
makedirs(args.output_dir)
elif not exists(args.output_dir):
makedirs(args.output_dir)
allele_groups, _ = load_data(
args.binding_data_csv_path,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment