Hi,
I am creating a set of lua scripts to automate the data capture with various user options.
I created MyLuaModule.lua as a module and tried to include it as part of my main automation script.
local newModule = require("MyLuaModule")
However, because MyLuaModule.lua is not on the packages path, it cannot be found during execution and I keep getting an error. (Ideally, I would like to keep this module in a folder of my choosing rather than the mmWave Studio path)
I discovered that it is possible to extend the existing package path using the following function, but I think this is a bit dangerous (as it modifies the existing installation) and there should be a higher level of defining additional user pacakage paths without affecting the built in packages.
package.path = package.path .. ";" .. active_script_root .. "?.lua"
Also, if I want to revert the package.path to its original state, how can I achieve this? Is there a configuration file hidden somewhere that I can manually edit to make the changes I need?
Regards,
Cagri