···11+--- a/conda/base/context.py
22++++ b/conda/base/context.py
33+@@ -754,7 +754,7 @@
44+55+ @property
66+ def conda_prefix(self):
77+- return abspath(sys.prefix)
88++ return expand("~/.conda")
99+1010+ @property
1111+ @deprecated(
1212+@@ -787,28 +787,17 @@
1313+ The vars can refer to each other if necessary since the dict is ordered.
1414+ None means unset it.
1515+ """
1616+- if context.dev:
1717+- return {
1818+- "CONDA_EXE": sys.executable,
1919+- # do not confuse with os.path.join, we are joining paths with ; or : delimiters
2020+- "PYTHONPATH": os.pathsep.join(
2121+- (CONDA_SOURCE_ROOT, os.environ.get("PYTHONPATH", ""))
2222+- ),
2323+- "_CE_M": "-m",
2424+- "_CE_CONDA": "conda",
2525+- "CONDA_PYTHON_EXE": sys.executable,
2626+- }
2727+- else:
2828+- bin_dir = "Scripts" if on_win else "bin"
2929+- exe = "conda.exe" if on_win else "conda"
3030+- # I was going to use None to indicate a variable to unset, but that gets tricky with
3131+- # error-on-undefined.
3232+- return {
3333+- "CONDA_EXE": os.path.join(sys.prefix, bin_dir, exe),
3434+- "_CE_M": "",
3535+- "_CE_CONDA": "",
3636+- "CONDA_PYTHON_EXE": sys.executable,
3737+- }
3838++ import sys
3939++ return {
4040++ "CONDA_EXE": sys.executable,
4141++ # do not confuse with os.path.join, we are joining paths with ; or : delimiters
4242++ "PYTHONPATH": os.pathsep.join(
4343++ [CONDA_SOURCE_ROOT, os.environ.get("PYTHONPATH", "")] + [path for path in sys.path if "site-packages" in path]
4444++ ),
4545++ "_CE_M": "-m",
4646++ "_CE_CONDA": "conda",
4747++ "CONDA_PYTHON_EXE": sys.executable,
4848++ }
4949+5050+ @memoizedproperty
5151+ def channel_alias(self):