Opening one script with another

Hi there! To organize the code in a modular way, I would recommend you to use dofile() instead of app.command.RunScript() (generally app.command.* are intended for the menus).

You can have the common code in other .lua and use dofile('./.hidden/my-functions.lua') to include a set of functions that can be used in your main .lua.

2 Likes