aboutsummaryrefslogtreecommitdiff
path: root/src/luarocks/path.lua
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/luarocks/path.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/luarocks/path.lua b/src/luarocks/path.lua
index 37898435..d740331b 100644
--- a/src/luarocks/path.lua
+++ b/src/luarocks/path.lua
@@ -200,7 +200,7 @@ end
200-- @return string: A directory name using the platform's separator. 200-- @return string: A directory name using the platform's separator.
201function path.module_to_path(mod) 201function path.module_to_path(mod)
202 assert(type(mod) == "string") 202 assert(type(mod) == "string")
203 return (mod:gsub("[^.]*$", ""):gsub("%.", dir.separator)) 203 return (mod:gsub("[^.]*$", ""):gsub("%.", "/"))
204end 204end
205 205
206--- Set up path-related variables for a given rock. 206--- Set up path-related variables for a given rock.