Skip to content

Correct way to allow scripts to import other scripts? #1659

Answered by lahma
Hi-ImKyle asked this question in Q&A
Discussion options

You must be logged in to vote

Generally you need to be in module context when importing modules, Evaluate and Execute are not.

If you've enabled modules with base path importing relative should work. You can override settings via engine's module options which allows also customizing loading logic.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@Hi-ImKyle
Comment options

@lahma
Comment options

Answer selected by Hi-ImKyle
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants