From 45cfbf47cacd50d5832cf49e98f6e5d26c38dcbc Mon Sep 17 00:00:00 2001 From: mpeterv Date: Mon, 26 Oct 2015 21:46:41 +0300 Subject: [PATCH] Fix path patching for Windows --- hererocks.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/hererocks.py b/hererocks.py index 3de50c5..c6fe3ba 100755 --- a/hererocks.py +++ b/hererocks.py @@ -190,6 +190,9 @@ def detect_lua_version(lua_path): return "5." + match.group(1) def patch_default_paths(lua_path, package_path, package_cpath): + package_path = package_path.replace("\\", "\\\\") + package_cpath = package_cpath.replace("\\", "\\\\") + luaconf_h = open(os.path.join(lua_path, "src", "luaconf.h"), "rb") luaconf_src = luaconf_h.read() luaconf_h.close()