Skip to content

General::noopen even if $Path is set #1329

@tueda

Description

@tueda

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

42

Then, with wolframscript,

AppendTo[$Path, FileNameJoin[{Directory[], "lib"}]];
Print[<< Lib`];

or simply

AppendTo[$Path, "lib"];
Print[<< Lib`];

prints the number in lib/Lib.m:

42

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions