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 01a6f4b commit df34473Copy full SHA for df34473
mypy/build.py
@@ -280,13 +280,13 @@ def compute_search_paths(sources: List[BuildSource],
280
assert site_dir not in lib_path
281
if site_dir in mypypath:
282
print("{} is in the MYPYPATH. Please remove it.".format(site_dir), file=sys.stderr)
283
+ sys.exit(1)
284
elif site_dir in python_path:
- print("{} is in the PYTHONPATH. Please change directory so it is not.".format(site_dir),
285
+ print("{} is in the PYTHONPATH. Please change directory"
286
+ " so it is not.".format(site_dir),
287
file=sys.stderr)
- else:
- # this site not in any of the other paths, we are safe.
288
- continue
289
- sys.exit(1)
+
290
return SearchPaths(tuple(reversed(python_path)),
291
tuple(mypypath),
292
package_path,
0 commit comments