fix waf build error with python3.7

This commit is contained in:
Huibean 2019-11-07 22:40:06 +08:00 committed by Randy Mackay
parent badc75ee5c
commit 56c573d839
1 changed files with 1 additions and 1 deletions

View File

@ -157,7 +157,7 @@ def _collect_autoconfig_files(cfg):
paths.append(p)
for p in paths:
if p in cfg.files or not os.path.isfile(p):
if p in cfg.files or not (p and os.path.isfile(p)):
continue
with open(p, 'rb') as f: