[JW Lua] Using library functions in Console

Aaron Sherber aaron at sherber.com
Sun Dec 31 21:46:54 CET 2023


My bad -- I neglected to double the backslashes in the path on Windows.
Using single forward slashes also works.

So in my case, this lets me do what I want:

package.path = package.path ..
";c:\\users\\aaron\\documents\\projects\\lua-scripts\\src\\?.lua"

Aaron.




On Sun, Dec 31, 2023 at 12:51 PM Aaron Sherber <aaron at sherber.com> wrote:

> Hi all,
>
> What's the correct way to configure things so that I can call library
> functions from the Console? Ideally, I'd like to be able to use the same
> syntax in Console scripts that I currently do while developing scripts for
> the repo (e.g., local library = require("library.general_library")).
>
> I've got the repo cloned locally, and I've tried adding both the src path
> and the src/library path to package.path in the RGP Lua System Prefix
> dialog, but that hasn't worked for me.
>
> Thanks,
> Aaron.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://jwmusic.nu/pipermail/jwlua_jwmusic.nu/attachments/20231231/88afd239/attachment.htm>


More information about the JWLua mailing list