diff options
author | William Deegan <bill@baddogconsulting.com> | 2024-09-23 21:00:58 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-09-23 21:00:58 (GMT) |
commit | 4af253800fbb03751e1b4537f1362a09dcfeef8a (patch) | |
tree | ed4764fd14daa45aeefcc0e028cde969d7dc50dc /SCons | |
parent | 5404eb70cc02bd5697b0274e5632be41436737f8 (diff) | |
parent | 2d5e3a40a613225b329776ab9dbd9abcd2d24222 (diff) | |
download | SCons-4af253800fbb03751e1b4537f1362a09dcfeef8a.zip SCons-4af253800fbb03751e1b4537f1362a09dcfeef8a.tar.gz SCons-4af253800fbb03751e1b4537f1362a09dcfeef8a.tar.bz2 |
Merge pull request #4603 from al3xtjames/darwin-generate
Handle permission errors while generating paths on Darwin
Diffstat (limited to 'SCons')
-rw-r--r-- | SCons/Platform/darwin.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/SCons/Platform/darwin.py b/SCons/Platform/darwin.py index 381b542..4ab7466 100644 --- a/SCons/Platform/darwin.py +++ b/SCons/Platform/darwin.py @@ -46,7 +46,7 @@ def generate(env) -> None: # make sure this works on Macs with Tiger or earlier try: dirlist = os.listdir('/etc/paths.d') - except FileNotFoundError: + except (FileNotFoundError, PermissionError): dirlist = [] for file in dirlist: |