···
1
-
diff --git a/conda/base/context.py b/conda/base/context.py
2
-
index 34a5e6495..ac017f48b 100644
3
-
--- a/conda/base/context.py
4
-
+++ b/conda/base/context.py
5
-
@@ -826,7 +826,7 @@ class Context(Configuration):
1
+
diff --git i/conda/base/context.py w/conda/base/context.py
2
+
index adf6d6e89..82f2c77f9 100644
3
+
--- i/conda/base/context.py
4
+
+++ w/conda/base/context.py
5
+
@@ -832,7 +832,7 @@ class Context(Configuration):
def conda_prefix(self) -> PathType:
···
14
-
@@ -858,25 +858,17 @@ class Context(Configuration):
14
+
@@ -864,35 +864,20 @@ class Context(Configuration):
The vars can refer to each other if necessary since the dict is ordered.
19
+
- if pythonpath := os.environ.get("PYTHONPATH", ""):
20
+
- pythonpath = os.pathsep.join((CONDA_SOURCE_ROOT, pythonpath))
22
+
- pythonpath = CONDA_SOURCE_ROOT
- "CONDA_EXE": sys.executable,
25
+
- "_CONDA_EXE": sys.executable,
- # do not confuse with os.path.join, we are joining paths with ; or : delimiters
22
-
- "PYTHONPATH": os.pathsep.join(
23
-
- (CONDA_SOURCE_ROOT, os.environ.get("PYTHONPATH", ""))
27
+
- "PYTHONPATH": pythonpath,
- "CONDA_PYTHON_EXE": sys.executable,
31
+
- "_CONDA_ROOT": self.conda_prefix,
30
-
- exe = "conda.exe" if on_win else "conda"
34
+
- exe = os.path.join(
35
+
- self.conda_prefix,
37
+
- "conda.exe" if on_win else "conda",
32
-
- "CONDA_EXE": os.path.join(sys.prefix, BIN_DIRECTORY, exe),
41
+
- "_CONDA_EXE": exe,
- "CONDA_PYTHON_EXE": sys.executable,
45
+
- "_CONDA_ROOT": self.conda_prefix,
+ "CONDA_EXE": sys.executable,
40
-
+ # do not confuse with os.path.join, we are joining paths with ; or : delimiters
41
-
+ "PYTHONPATH": os.pathsep.join(
42
-
+ [CONDA_SOURCE_ROOT, os.environ.get("PYTHONPATH", "")] + [path for path in sys.path if "site-packages" in path]
45
-
+ "_CE_CONDA": "conda",
46
-
+ "CONDA_PYTHON_EXE": sys.executable,
50
+
+ "_CONDA_EXE": sys.executable,
51
+
+ # do not confuse with os.path.join, we are joining paths with ; or : delimiters
52
+
+ "PYTHONPATH": os.pathsep.join(
53
+
+ [CONDA_SOURCE_ROOT, os.environ.get("PYTHONPATH", "")] + [path for path in sys.path if "site-packages" in path]
57
+
+ "_CE_CONDA": "conda",
58
+
+ "CONDA_PYTHON_EXE": sys.executable,
59
+
+ "_CONDA_ROOT": self.conda_prefix,