Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Import file from a child directory #278

Open
dnbsd opened this issue Oct 13, 2024 · 1 comment
Open

Import file from a child directory #278

dnbsd opened this issue Oct 13, 2024 · 1 comment

Comments

@dnbsd
Copy link

dnbsd commented Oct 13, 2024

It seems import statement does not support importing files from a child directory:

$ risor -c "import test/foo"
parse error: invalid expression

location: line 1, column 12
import test/foo

Is this a bug or a different syntax is expected?

@rubiojr
Copy link
Contributor

rubiojr commented Oct 13, 2024

@dnbsd assuming you have a test/foo.risor module, this may work for you:

risor --modules test -c "import foo"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants