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 85ec0a7 commit 6c87cf8Copy full SHA for 6c87cf8
mypy/fscache.py
@@ -117,9 +117,14 @@ def init_under_package_root(self, path: str) -> bool:
117
if not stat.S_ISDIR(st.st_mode):
118
return False
119
ok = False
120
+
121
+ # skip if on a different drive
122
+ current_drive, _ = os.path.splitdrive(os.getcwd())
123
+ drive, _ = os.path.splitdrive(path)
124
+ if drive != current_drive:
125
+ return False
126
if os.path.isabs(path):
127
path = os.path.relpath(path)
- drive, path = os.path.splitdrive(path) # Ignore Windows drive name
128
path = os.path.normpath(path)
129
for root in self.package_root:
130
if path.startswith(root):
0 commit comments