From 028ecf43df0209a050e1a601b235255eb4c7c1a6 Mon Sep 17 00:00:00 2001 From: Thomas Nagy Date: Tue, 1 Mar 2016 22:45:39 +0100 Subject: [PATCH] Workaround for unreadable home folders --- waflib/Scripting.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/waflib/Scripting.py b/waflib/Scripting.py index 71d49634..b3acf3f7 100644 --- a/waflib/Scripting.py +++ b/waflib/Scripting.py @@ -76,7 +76,11 @@ def waf_entry_point(current_directory, version, wafdir): # at the same time, store the first wscript file seen cur = current_directory while cur and not Context.top_dir: - lst = os.listdir(cur) + try: + lst = os.listdir(cur) + except OSError: + lst = [] + Logs.error('Directory %r is unreadable!' % cur) if Options.lockfile in lst: env = ConfigSet.ConfigSet() try: