ignacio / lua-appveyor-example

For experiments with AppVeyor CI
MIT License
13 stars 8 forks source link

Current dir in LUA_PATH/LUA_CPATH #14

Closed moteus closed 9 years ago

moteus commented 9 years ago

Please add current path to search paths of Lua modules LUA_PATH=".\?.lua;.\?\init.lua" LUA_CPATH=".\?.dll"

ignacio commented 9 years ago

Do you mean here? If so, wouldn't it be better to do that in the test script instead? Like:

package.path = "./?.lua;./?/init.lua;"  .. package.path
package.cpath = "./?.dll;"  .. package.cpath

This seems specific enough to no be set as default in the install scripts.

moteus commented 9 years ago

Lua by default has this path. Also after install luarocks on *nix this path also exists. So to constancy I think this is also exists on Windows as well.

ignacio commented 9 years ago

Oh, I see. I presume that calls to require in your test code are failing.