Fix issue #2: init doesn't grab BASE correctly.
This commit is contained in:
parent
2fd060184e
commit
ff9caa39ca
1 changed files with 2 additions and 1 deletions
3
init.lua
3
init.lua
|
@ -24,7 +24,8 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||||
THE SOFTWARE.
|
THE SOFTWARE.
|
||||||
]]--
|
]]--
|
||||||
|
|
||||||
local BASE = ((...):match('(.+)%.') or ...) .. '.'
|
local BASE = (...) .. '.'
|
||||||
|
assert(not BASE:match('%.init%.$'), "Invalid require path `"..(...).."' (drop the `.init').")
|
||||||
|
|
||||||
return {
|
return {
|
||||||
core = require(BASE .. 'core'),
|
core = require(BASE .. 'core'),
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue