Skip to content

Commit

Permalink
Allow vamb to run in already-existing directory
Browse files Browse the repository at this point in the history
  • Loading branch information
jakobnissen committed Sep 17, 2020
1 parent e475da1 commit 21ef61c
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion vamb/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -486,7 +486,13 @@ def main():
subprocesses = min(subprocesses, len(args.bamfiles))

################### RUN PROGRAM #########################
os.mkdir(args.outdir)
try:
os.mkdir(args.outdir)
except FileExistsError:
pass
except:
raise

logpath = os.path.join(args.outdir, 'log.txt')

with open(logpath, 'w') as logfile:
Expand Down

0 comments on commit 21ef61c

Please sign in to comment.