$ResourceSystemPath
给出在其中查找资源对象的默认位置列表.
更多信息
- $ResourceSystemPath 的元素包括:
-
URL[…] $ResourceSystemBase 中资源系统的 URL PersistenceLocation["type"] 部署的资源位置 - 默认情况下,$ResourceSystemPath 按给定顺序,无重复包含以下元素:
-
$PersistencePath 持久性位置列表 $ResourceSystemBase 当前资源系统基础 URL[
]Wolfram 资源系统 PersistenceLocation["Cloud"] Wolfram Cloud 持久性位置(当连接到云端时) - $ResourceSystemPath 为 ResourceObject["name"]、ResourceFunction["name"] 和 ResourceSearch 提供 ResourceSystemPath 选项的默认值.
- $ResourceSystemPath 的元素按序使用. 当在 ResourceObject 内使用,返回沿路径找到的第一个资源.
范例
打开所有单元 关闭所有单元范围 (3)
在内核会话中定义一个 ResourceFunction:
DefineResourceFunction[Style[#, 36, Red, Bold]&, "BigRed"]该函数自动在内核会话中注册,并使用默认的 $ResourceSystemPath 按名字发现:
ResourceFunction["BigRed"]$ResourceSystemPath = {URL["https://resources.wolframcloud.com"]}ResourceFunction["BigRed"]添加 "KernelSession" PersistenceLocation:
$ResourceSystemPath = {PersistenceLocation["KernelSession"], URL["https://resources.wolframcloud.com"]}ResourceFunction["BigRed"]$ResourceSystemPath = {PersistenceLocation["Local"], URL["https://resources.wolframcloud.com"]}ResourceSearch["Sports"]$ResourceSystemPath = {URL["https://resources.wolframcloud.com"]}属性和关系 (2)
$ResourceSystemPath 为 ResourceSystemPath 选项提供默认的值:
$ResourceSystemPath = {PersistenceLocation["Cloud"]}ResourceObject["BirdSay"]为 ResourceSystemPath 提供值以便取代 $ResourceSystemPath 的值:
ResourceObject["BirdSay", ResourceSystemPath -> {URL[$ResourceSystemBase]}]$ResourceSystemBase 的值被包含在默认的 $ResourceSystemPath 列表中,在 Wolfram Resource System 之前:
$ResourceSystemBase = "https://cloud.example.com";$ResourceSystemPath相关指南
文本
Wolfram Research (2020),$ResourceSystemPath,Wolfram 语言函数,https://reference.wolfram.com/language/ref/$ResourceSystemPath.html.
CMS
Wolfram 语言. 2020. "$ResourceSystemPath." Wolfram 语言与系统参考资料中心. Wolfram Research. https://reference.wolfram.com/language/ref/$ResourceSystemPath.html.
APA
Wolfram 语言. (2020). $ResourceSystemPath. Wolfram 语言与系统参考资料中心. 追溯自 https://reference.wolfram.com/language/ref/$ResourceSystemPath.html 年
BibTeX
@misc{reference.wolfram_2026_$resourcesystempath, author="Wolfram Research", title="{$ResourceSystemPath}", year="2020", howpublished="\url{https://reference.wolfram.com/language/ref/$ResourceSystemPath.html}", note=[Accessed: 26-August-2026]}
BibLaTeX
@online{reference.wolfram_2026_$resourcesystempath, organization={Wolfram Research}, title={$ResourceSystemPath}, year={2020}, url={https://reference.wolfram.com/language/ref/$ResourceSystemPath.html}, note=[Accessed: 26-August-2026]}