luaA_init: use Lua C API to add paths to package.path
commit238dc06ae46c70f40fcc025ef26e64f6c284eb71
authorAli Polatel <polatel@gmail.com>
Sat, 9 May 2009 08:09:21 +0000 (9 11:09 +0300)
committerJulien Danjou <julien@danjou.info>
Sat, 9 May 2009 11:58:57 +0000 (9 13:58 +0200)
tree3bc307001a57a93444c8d768a11affceb9fc8a7a
parent99f763d833480765e1fbb86247eedcdc6a001695
luaA_init: use Lua C API to add paths to package.path

This is cleaner and it should be a bit faster than using
luaL_dostring().

Signed-off-by: Julien Danjou <julien@danjou.info>
luaa.c