We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6ef3156 commit fed3e42Copy full SHA for fed3e42
pylint/lint/expand_modules.py
@@ -35,8 +35,11 @@ def discover_package_path(
35
# Look for a source root that contains the module directory
36
for source_root in source_roots:
37
source_root = os.path.realpath(os.path.expanduser(source_root))
38
- if os.path.commonpath([source_root, dirname]) == source_root:
39
- return [source_root]
+ try:
+ if os.path.commonpath([source_root, dirname]) == source_root:
40
+ return [source_root]
41
+ except ValueError:
42
+ continue
43
44
if len(source_roots) != 0:
45
return source_roots
0 commit comments