Thanks to visit codestin.com Credit goes to github.com
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.
2 parents e768061 + d17b81e commit 3e2c48aCopy full SHA for 3e2c48a
1 file changed
IPython/core/interactiveshell.py
@@ -928,6 +928,11 @@ def init_virtualenv(self):
928
elif len(str(p_venv)) >= 2 and str(p_venv)[1] == ":":
929
p_venv = Path(str(p_venv)[2:])
930
931
+ if sys.platform == "win32":
932
+ # On Windows there might be a mixture of lower-case and mixed-case paths
933
+ p_venv = Path(str(p_venv).lower())
934
+ paths = [Path(str(p).lower()) for p in paths]
935
+
936
if any(os.fspath(p_venv) in os.fspath(p) for p in paths):
937
# Our exe is inside or has access to the virtualenv, don't need to do anything.
938
return
0 commit comments