Using modules in dzVents
Posted: Thursday 03 August 2017 10:54
If I would like to use a module in my dzVents script using "require" I can not just create a file mymodule.lua and place it in the dzVents script folder because dzVents will try to load all lua files assuming they are ordinary dzVents scripts.
I can solve that by choosing to place my module in a different folder and change the package.path etc etc but it can be quite difficult if I want my script to run on all platforms.
Would it be possible to reserve a name space (E.g. my_*) for lua scripts in the dzVents script folder that will be excluded from being loaded by dzVents?
Cheers!
I can solve that by choosing to place my module in a different folder and change the package.path etc etc but it can be quite difficult if I want my script to run on all platforms.
Would it be possible to reserve a name space (E.g. my_*) for lua scripts in the dzVents script folder that will be excluded from being loaded by dzVents?
Cheers!