Thanks to #1229, $Path is now modifiable. But I was wondering if changing $Path is reflected in the Get command.
Suppose I have lib/Lib.m, whose file content is
Then, with wolframscript,
AppendTo[$Path, FileNameJoin[{Directory[], "lib"}]];
Print[<< Lib`];
or simply
AppendTo[$Path, "lib"];
Print[<< Lib`];
prints the number in lib/Lib.m:
But with mathicsscript, both give
General::noopen: Cannot open Lib`.
Version:
Mathicscript: 2.1.2, Mathics 2.1.0
on CPython 3.9.4 (default, Apr 7 2021, 05:45:11)
using SymPy 1.7.1, mpmath 1.2.1, numpy 1.20.2
Thanks to #1229,
$Pathis now modifiable. But I was wondering if changing$Pathis reflected in theGetcommand.Suppose I have
lib/Lib.m, whose file content is42Then, with
wolframscript,or simply
prints the number in
lib/Lib.m:But with
mathicsscript, both giveVersion: