Skip to content

Commit afbe0b9

Browse files
Shareef Jalloqzyp
authored andcommitted
bugfix/python_path: fix for PYTHONPATH
This commit fixes deps/__init__.py to correctly ignore the directory names listed in the ignore[] list. Either check the full path or just path.name.
1 parent d096575 commit afbe0b9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

deps/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
'__pycache__',
77
]
88

9-
paths = [str(p) for p in pathlib.Path(__file__).parent.iterdir() if p.is_dir() and p not in ignore]
9+
paths = [str(p) for p in pathlib.Path(__file__).parent.iterdir() if p.is_dir() and p.name not in ignore]
1010

1111
for p in paths:
1212
sys.path.insert(1, p)

0 commit comments

Comments
 (0)