EngineHub / EngineHub/CommandHelper

include(), read(), etc within a file use a different base directory when called from cmdline/MC VS interpreter

未关闭
#1,245 2 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
feature request
主要语言
Java
星标
128
派生
70
PR 合并指标
30 天内没有已合并 PR

描述

This topic was discussed on Discord, this issue serves the purpose of not losing the results.

## Desired behavior
- MC: Relative to script directory (no change).
- Cmdline: Relative to script directory.
- Interpreter/MC interpreter:
- Functions entered directly into the interpreter use the directory set using `cd()` as base directory.
- Included MS files (including the procedures defined within them) use their parent directory as base directory (same behavior as non-interpreter mode).
- Procedures defined in the interpreter use the directory set using `cd()` at definition time for all calls to that procedure.

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。