Workaround for unreadable home folders

This commit is contained in:
Thomas Nagy 2016-03-01 22:45:39 +01:00
parent 0ab704f5a4
commit 028ecf43df
No known key found for this signature in database
GPG Key ID: 67A565EDFDF90E64
1 changed files with 5 additions and 1 deletions

View File

@ -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: