Skip to content

Module RFC Questions #362

Discussion options

You must be logged in to vote

Hi! Good questions out there.

Modules are very new so bear in mind the implementation / guidelines may change as we find more use cases.

For the first question, I would start with one module first and then as my module grows split it to smaller modules. There is no overhead in calling modules other than for the first call CLEO must load it in memory, and then it works just like any SCM function.

For the second question, modules are loaded relative to the script's directory. You can use a virtual path prefix like cleo:\ or root:\ to load them from a specific folder, ignoring modloader.

In your example import func1 from "..\..\Library\cleo\funcs.mod should work, but let me know if it doesn't.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Aldrin-John-Olaer-Manalansan
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