EngineHub / EngineHub/CommandHelper

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

Aperta
#1,245 2 commenti 0 reazioni 0 assegnatari Vedi su GitHub
feature request
Lingua principale
Java
Stelle
128
Fork
70
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

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.

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.