Skip to content

Commit

Permalink
Merge pull request #975 from nextgenusfs/add_maskloguuid
Browse files Browse the repository at this point in the history
make mask log file unique
  • Loading branch information
hyphaltip committed Oct 24, 2023
2 parents 7d9496f + a8955c0 commit 24d6aaa
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions funannotate/mask.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,10 +125,11 @@ def __init__(self, prog):
args = parser.parse_args(args)

# create log file for Repeats(capture stderr)
log_name = 'funannotate-mask.log'
# make this filename unique so multiple mask runs can happen in same folder
log_name = "funannotate-mask." + str(uuid.uuid4())[-8:] + ".log"
# this next seems unncessary as filenames should be unique but will leave in
if os.path.isfile(log_name):
os.remove(log_name)

# initialize script, log system info and cmd issue at runtime
lib.setupLogging(log_name)
cmd_args = " ".join(sys.argv)+'\n'
Expand Down Expand Up @@ -197,6 +198,5 @@ def __init__(self, prog):
lib.SafeRemove(tmpdir)
print("-------------------------------------------------------")


if __name__ == "__main__":
main(sys.argv[1:])

0 comments on commit 24d6aaa

Please sign in to comment.