Skip to content

Commit

Permalink
Merge pull request #63 from broadinstitute/dp-fix-novoalign-ntfs
Browse files Browse the repository at this point in the history
ignore errors with os.chmod on non-unix file systems (ie, fat32)
  • Loading branch information
dpark01 committed Jan 11, 2015
2 parents 4a0d7d2 + 49f60be commit bb67368
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions tools/novoalign.py
Expand Up @@ -87,5 +87,8 @@ def index_fasta(self, fasta):
cmd = [novoindex, outfname, fasta]
log.debug(' '.join(cmd))
subprocess.check_call(cmd)
mode = os.stat(outfname).st_mode & ~stat.S_IXUSR & ~stat.S_IXGRP & ~stat.S_IXOTH
os.chmod(outfname, mode)
try:
mode = os.stat(outfname).st_mode & ~stat.S_IXUSR & ~stat.S_IXGRP & ~stat.S_IXOTH
os.chmod(outfname, mode)
except PermissionError:
pass

0 comments on commit bb67368

Please sign in to comment.