-
Notifications
You must be signed in to change notification settings - Fork 35
Open
Description
Over at wren-lang/wren#346 I see:
munificent commented on Jun 1, 2016
| it's designed to allow the user to load the modules from wherever it needs to, right?
Exactly right.
That does not seem to be true of wren-cli. I think it should be possible to specify an absolute path. Or am I missing something?
Example
$ cd /tmp
$ wren --version
wren 0.4.0
$ cat float.wren
import "/Users/user/github/wren-essentials/src/modules/json" for JSON
var x = JSON.parse("1.24")
$ file /Users/user/github/wren-essentials/src/modules/json.wren
/Users/peter/github/wren-essentials/src/modules/json.wren: C++ source text, ASCII text
$ wren float.wren
Could not load module './Users/peter/github/wren-essentials/src/modules/json'.
[./float line 1] in (script)
Changing the first / in the import to // did not help.
Metadata
Metadata
Assignees
Labels
No labels