diff options
-rw-r--r-- | src/luarocks/cfg.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/luarocks/cfg.lua b/src/luarocks/cfg.lua index 20aa4a21..a02caaee 100644 --- a/src/luarocks/cfg.lua +++ b/src/luarocks/cfg.lua | |||
@@ -310,7 +310,7 @@ local defaults = { | |||
310 | } | 310 | } |
311 | 311 | ||
312 | if detected.windows then | 312 | if detected.windows then |
313 | local full_prefix = site_config.LUAROCKS_PREFIX.."\\"..cfg.major_version | 313 | local full_prefix = (site_config.LUAROCKS_PREFIX or (os.getenv("PROGRAMFILES")..[[\LuaRocks]])).."\\"..cfg.major_version |
314 | extra_luarocks_module_dir = full_prefix.."\\lua\\?.lua" | 314 | extra_luarocks_module_dir = full_prefix.."\\lua\\?.lua" |
315 | 315 | ||
316 | home_config_file = home_config_file and home_config_file:gsub("\\","/") | 316 | home_config_file = home_config_file and home_config_file:gsub("\\","/") |