Skip to content

Instantly share code, notes, and snippets.

@philips
Created February 23, 2012 15:52
Show Gist options
  • Save philips/1893394 to your computer and use it in GitHub Desktop.
Save philips/1893394 to your computer and use it in GitHub Desktop.
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