mysql-proxy-discuss team mailing list archive
-
mysql-proxy-discuss team
-
Mailing list archive
-
Message #00132
LUA_PATH and using modules on your Lua scripts
Hi,
I have been working on a set of lua scripts that are divided into one
main script and 4 other modules.
Because I am still working on them, I have them in a subfolder under
the main script. Like this:
main.lua
|
|____ modules/
|
|______module1.lua
|______module2.lua
|______module3.lua
|______module4.lua
(As opposed to copying them to the share/ folder in the proxy install dir)
When I start the proxy, I was doing:
$ LUA_PATH=/path/to/modules ./sbin/mysql-proxy
--defaults-file=/path/to/ini/file
but after the latest changes to the proxy, if I compile it with the
--enable-self-contained option, ./sbin/mysql-proxy overwrites
LUA_PATH
The question:
Couldn't the proxy just look for modules in a subfolder from the
script that is passed to the proxy using --proxy-lua-script? I still
need the value of LUA_PATH that comes with the proxy as I use the
chassis.lua and other lua scripts that come with the distribution.
Thanks
Diego
--
Diego Medina
Web Developer
http://www.fmpwizard.com