package.path = ‘?.lua;./?.lua;’..package.path
I do not work on unix derivative so this may be wrong.
I am not to sure why you need it.
for ex: Coding package.cpath = package.cpath..“;/mydrive/cocos2d-x/samples/Lua/TestLua/Resources/luaScript/?.lua”
Using the full path would work but is not normally used; relative path are preferred.
Note the ? is exactly replaced by the name specified in the require and the ; separates the path.