mirror of
https://github.com/xonsh/xonsh.git
synced 2025-03-05 17:00:58 +01:00
logic error
This commit is contained in:
parent
55b4251672
commit
1310e9210a
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue