Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add /?/init.lua to loaders #1

Merged
merged 1 commit into from
Feb 26, 2018
Merged

Add /?/init.lua to loaders #1

merged 1 commit into from
Feb 26, 2018

Conversation

SpiralP
Copy link
Contributor

@SpiralP SpiralP commented Feb 26, 2018

so when we require('mod') it will try libraries/mod.lua, libraries/mod/init.lua

default luajit package.path has
/usr/share/lua/5.1/?.lua
/usr/share/lua/5.1/?/init.lua

so when we require('mod') it will try libraries/mod.lua, libraries/mod/init.lua

default luajit package.path has
/usr/share/lua/5.1/?.lua
/usr/share/lua/5.1/?/init.lua
@danielga danielga self-requested a review February 26, 2018 17:06
@danielga danielga self-assigned this Feb 26, 2018
Copy link
Owner

@danielga danielga left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good 👍

@danielga danielga merged commit da4a8f4 into danielga:master Feb 26, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants