代码拉取完成,页面将自动刷新
diff --git a/conda/activate.py b/conda/activate.py
index 8149162..0d751e3 100644
--- a/conda/activate.py
+++ b/conda/activate.py
@@ -918,13 +918,7 @@ class PosixActivator(_Activator):
set_var_tmpl = "%s='%s'"
run_script_tmpl = '. "%s"'
- hook_source_path = join(
- CONDA_PACKAGE_ROOT,
- "shell",
- "etc",
- "profile.d",
- "conda.sh",
- )
+ hook_source_path = '/etc/profile.d/conda.sh'
def _update_prompt(self, set_vars, conda_prompt_modifier):
ps1 = self.environ.get("PS1", "")
@@ -971,13 +965,7 @@ class CshActivator(_Activator):
set_var_tmpl = "set %s='%s'"
run_script_tmpl = 'source "%s"'
- hook_source_path = join(
- CONDA_PACKAGE_ROOT,
- "shell",
- "etc",
- "profile.d",
- "conda.csh",
- )
+ hook_source_path = '/etc/profile.d/conda.csh'
def _update_prompt(self, set_vars, conda_prompt_modifier):
prompt = self.environ.get("prompt", "")
@@ -1033,7 +1021,7 @@ class XonshActivator(_Activator):
else 'source-bash --suppress-skip-message -n "%s"'
)
- hook_source_path = join(CONDA_PACKAGE_ROOT, "shell", "conda.xsh")
+ hook_source_path = "/etc/profile.d/conda.xsh"
def _hook_preamble(self) -> str:
return '$CONDA_EXE = "%s"' % self.path_conversion(context.conda_exe)
@@ -1074,14 +1062,7 @@ class FishActivator(_Activator):
set_var_tmpl = 'set -g %s "%s"'
run_script_tmpl = 'source "%s"'
- hook_source_path = join(
- CONDA_PACKAGE_ROOT,
- "shell",
- "etc",
- "fish",
- "conf.d",
- "conda.fish",
- )
+ hook_source_path = "/etc/fish/conf.d/conda.fish"
def _hook_preamble(self) -> str:
if on_win:
diff --git a/conda/base/context.py b/conda/base/context.py
index c22fafd..cf29eb6 100644
--- a/conda/base/context.py
+++ b/conda/base/context.py
@@ -739,7 +739,7 @@ class Context(Configuration):
def av_data_dir(self):
"""Where critical artifact verification data (e.g., various public keys) can be found."""
# TODO (AV): Find ways to make this user configurable?
- return join(self.conda_prefix, "etc", "conda")
+ return '/etc/conda'
@property
def signing_metadata_url_base(self):
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。