logic error

This commit is contained in:
Anthony Scopatz 2016-08-12 00:13:08 -04:00
parent 55b4251672
commit 1310e9210a

View file

@ -48,7 +48,7 @@ class XonshImportHook(MetaPathFinder, SourceLoader):
for p in path:
if not isinstance(p, str):
continue
if not os.path.isdir(p) and not os.access(p, os.R_OK):
if not os.path.isdir(p) or not os.access(p, os.R_OK):
continue
if fname not in (x.name for x in scandir(p)):
continue