我正在从 user.r 执行多个库。
我可以从 system/script/path 获取脚本的路径,但看不到如何获取脚本的名称。所以我有义务硬编码标题属性中的文件名,如下所示(文件):
REBOL [
Title: "Lib1"
File: "lib1.r"
]
script-path: ""
]
system/script/header/script-path: rejoin [system/script/path system/script/header/file]
probe system/script/header/script-path
input