Merge pull request #1144 from The-Compiler/elcapitan-sip

Handle EPERM when writing rewritten bytecode.
This commit is contained in:
Ronny Pfannschmidt 2015-11-01 08:20:00 +01:00
commit 9013cb1b4c
1 changed files with 1 additions and 1 deletions

View File

@ -128,7 +128,7 @@ class AssertionRewritingHook(object):
# One of the path components was not a directory, likely
# because we're in a zip file.
write = False
elif e in [errno.EACCES, errno.EROFS]:
elif e in [errno.EACCES, errno.EROFS, errno.EPERM]:
state.trace("read only directory: %r" % fn_pypath.dirname)
write = False
else: