diff options
Diffstat (limited to 'src/luarocks/path.lua')
-rw-r--r-- | src/luarocks/path.lua | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/src/luarocks/path.lua b/src/luarocks/path.lua index 83b84530..fe241aa5 100644 --- a/src/luarocks/path.lua +++ b/src/luarocks/path.lua | |||
@@ -302,16 +302,10 @@ function versioned_name(file, prefix, name, version) | |||
302 | end | 302 | end |
303 | 303 | ||
304 | --- Driver function for "path" command. | 304 | --- Driver function for "path" command. |
305 | -- This platform distinction is not in fs to avoid depending on that module here. | ||
306 | -- @return boolean This function always succeeds. | 305 | -- @return boolean This function always succeeds. |
307 | function run(...) | 306 | function run(...) |
308 | if cfg.is_platform("unix") then | 307 | util.printout(cfg.export_lua_path:format(package.path)) |
309 | util.printout("export LUA_PATH='"..package.path.."'") | 308 | util.printout(cfg.export_lua_cpath:format(package.path)) |
310 | util.printout("export LUA_CPATH='"..package.cpath.."'") | ||
311 | elseif cfg.is_platform("windows") then | ||
312 | util.printout("SET LUA_PATH="..package.path) | ||
313 | util.printout("SET LUA_CPATH="..package.cpath) | ||
314 | end | ||
315 | return true | 309 | return true |
316 | end | 310 | end |
317 | 311 | ||