diff options
author | Ignacio Burgueño <ignaciob@inconcertcc.com> | 2015-06-19 15:33:11 -0300 |
---|---|---|
committer | Ignacio Burgueño <ignaciob@inconcertcc.com> | 2015-06-19 15:33:11 -0300 |
commit | fdcecd17fc27eb6c2fab9192b66bb03c3b55bf11 (patch) | |
tree | c1d5247374d9e96be145822b8318e8544b97ede6 /src | |
parent | 5b605a99c6d783afd7c7e9f8b6cb42606e61697b (diff) | |
download | luarocks-fdcecd17fc27eb6c2fab9192b66bb03c3b55bf11.tar.gz luarocks-fdcecd17fc27eb6c2fab9192b66bb03c3b55bf11.tar.bz2 luarocks-fdcecd17fc27eb6c2fab9192b66bb03c3b55bf11.zip |
Allows luarocks.cfg to be used without being installed.
This allows to address the issue #386
Diffstat (limited to 'src')
-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("\\","/") |