El Capitan fix

This commit is contained in:
Adrian Sampson 2015-07-13 16:16:33 -07:00
parent ae68cedeaf
commit 9aad2115e0
2 changed files with 4 additions and 2 deletions

View file

@ -660,8 +660,8 @@ def cpu_count():
num = 0
elif sys.platform == b'darwin':
try:
num = int(command_output([b'sysctl', b'-n', b'hw.ncpu']))
except ValueError:
num = int(command_output([b'/usr/sbin/sysctl', b'-n', b'hw.ncpu']))
except (ValueError, OSError, subprocess.CalledProcessError):
num = 0
else:
try:

View file

@ -71,6 +71,8 @@ Fixes:
* Fix an edge case when producing sanitized filenames where the maximum path
length conflicted with the :ref:`replace` rules. Thanks to Ben Ockmore.
:bug:`496` :bug:`1361`
* Fix an incompatibility with OS X 10.11 (where ``/usr/sbin`` seems not to be
on the user's path by default).
1.3.13 (April 24, 2015)