Update of /cvsroot/wxlua/wxLua/samples
In directory sc8-pr-cvs9.sourceforge.net:/tmp/cvs-serv10298/samples
Modified Files:
luamodule.wx.lua
Log Message:
fixed cpath to make it work out-of-the-box
Index: luamodule.wx.lua
===================================================================
RCS file: /cvsroot/wxlua/wxLua/samples/luamodule.wx.lua,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** luamodule.wx.lua 20 May 2006 12:18:47 -0000 1.1
--- luamodule.wx.lua 20 May 2006 20:22:24 -0000 1.2
***************
*** 10,19 ****
-----------------------------------------------------------------------------
! -- find the PATH where the "wx" module of wxLua has been installed (Unix-only)
! -- tmpfilename = os.tmpname()
! -- os.execute("pkg-config wxlua --variable=libdir >"..tmpfilename)
! -- for line in io.lines(tmpfilename) do package.cpath = line.."/lua/5.1/?.so" end
!
! package.cpath = ";;../lib/?.so;..\lib\?.dll"
require("wx")
--- 10,20 ----
-----------------------------------------------------------------------------
! -- to make this sample script work out-of-the-box, we need to add
! -- to the paths looked by require() all possible locations of the
! -- wx.dll/.so module.
! -- Please also note that this sample can be executed only when
! -- wxLua has been compiled in shared mode (--enable-shared on Unix,
! -- SHARED=1 on Windows)
! package.cpath = ";;../lib/?.so;../lib/vc_dll/?.dll;../lib/bcc_dll/?.dll;../lib/mingw_dll/?.dll;"
require("wx")
|