Created
February 23, 2012 15:52
-
-
Save philips/1893394 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/lib/luvit/module.lua b/lib/luvit/module.lua | |
index 905ca19..74e8c49 100644 | |
--- a/lib/luvit/module.lua | |
+++ b/lib/luvit/module.lua | |
@@ -175,7 +175,7 @@ function module.require(filepath, dirname) | |
local dir = dirname .. path.sep | |
repeat | |
dir = path.dirname(dir) | |
- local full_path = path.join(dir, modules, filepath) | |
+ local full_path = path.join(dir, "modules", filepath) | |
local loader = loadModule(full_path) | |
if type(loader) == "function" then | |
return loader() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment