aboutsummaryrefslogtreecommitdiff
path: root/src/luarocks/path.lua
diff options
context:
space:
mode:
Diffstat (limited to 'src/luarocks/path.lua')
-rw-r--r--src/luarocks/path.lua8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/luarocks/path.lua b/src/luarocks/path.lua
index 44e1aa63..9b7f6bc7 100644
--- a/src/luarocks/path.lua
+++ b/src/luarocks/path.lua
@@ -52,19 +52,19 @@ end
52 52
53function deploy_lua_dir(repo) 53function deploy_lua_dir(repo)
54 if type(repo) == "string" then 54 if type(repo) == "string" then
55 return dir.path(repo, "share", "lua", "5.1") 55 return dir.path(repo, cfg.lua_modules_path)
56 else 56 else
57 assert(type(repo) == "table") 57 assert(type(repo) == "table")
58 return repo.lua_dir or dir.path(repo.root, "share", "lua", "5.1") 58 return repo.lua_dir or dir.path(repo.root, cfg.lua_modules_path)
59 end 59 end
60end 60end
61 61
62function deploy_lib_dir(repo) 62function deploy_lib_dir(repo)
63 if type(repo) == "string" then 63 if type(repo) == "string" then
64 return dir.path(repo, "lib", "lua", "5.1") 64 return dir.path(repo, cfg.lib_modules_path)
65 else 65 else
66 assert(type(repo) == "table") 66 assert(type(repo) == "table")
67 return repo.lib_dir or dir.path(repo.root, "lib", "lua", "5.1") 67 return repo.lib_dir or dir.path(repo.root, cfg.lib_modules_path)
68 end 68 end
69end 69end
70 70