diff options
Diffstat (limited to 'src/MoonP/moonplus.h')
-rw-r--r-- | src/MoonP/moonplus.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/MoonP/moonplus.h b/src/MoonP/moonplus.h index 7059286..83d4c75 100644 --- a/src/MoonP/moonplus.h +++ b/src/MoonP/moonplus.h | |||
@@ -27,8 +27,8 @@ local lua = { | |||
27 | loadstring = loadstring, | 27 | loadstring = loadstring, |
28 | load = load | 28 | load = load |
29 | } | 29 | } |
30 | local dirsep, split, get_options, create_moonpath, moon_loader, load_text, moon_call, loadstring, loadfile, dofile, insert_loader, remove_loader, moon_require, find_modulepath | 30 | local split, get_options, create_moonpath, moon_loader, load_text, moon_call, loadstring, loadfile, dofile, insert_loader, remove_loader, moon_require, find_modulepath |
31 | dirsep = "/" | 31 | moonp.dirsep = "/" |
32 | moonp.moon_compiled = { } | 32 | moonp.moon_compiled = { } |
33 | moonp.file_exist = function(fname) | 33 | moonp.file_exist = function(fname) |
34 | local file = io.open(fname) | 34 | local file = io.open(fname) |
@@ -103,7 +103,7 @@ find_modulepath = function(name) | |||
103 | if not package.moonpath then | 103 | if not package.moonpath then |
104 | package.moonpath = create_moonpath(package.path) | 104 | package.moonpath = create_moonpath(package.path) |
105 | end | 105 | end |
106 | local name_path = name:gsub("%.", dirsep) | 106 | local name_path = name:gsub("%.", moonp.dirsep) |
107 | local file_exist, file_path | 107 | local file_exist, file_path |
108 | for path in package.moonpath:gmatch("[^;]+") do | 108 | for path in package.moonpath:gmatch("[^;]+") do |
109 | file_path = path:gsub("?", name_path) | 109 | file_path = path:gsub("?", name_path) |