diff options
author | Li Jin <dragon-fly@qq.com> | 2021-09-20 01:18:05 +0800 |
---|---|---|
committer | Li Jin <dragon-fly@qq.com> | 2021-09-20 01:18:05 +0800 |
commit | 3b62fc040ef8c5138eefd7c0f1a5880e9271c3b6 (patch) | |
tree | 8415460f3764c68713ea4b1baf38e907700a7c3a | |
parent | 3a126602d903d49e13595268e1da57624f0b6fc1 (diff) | |
download | yuescript-3b62fc040ef8c5138eefd7c0f1a5880e9271c3b6.tar.gz yuescript-3b62fc040ef8c5138eefd7c0f1a5880e9271c3b6.tar.bz2 yuescript-3b62fc040ef8c5138eefd7c0f1a5880e9271c3b6.zip |
fix.
-rw-r--r-- | src/yuescript/stacktraceplus.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/yuescript/stacktraceplus.h b/src/yuescript/stacktraceplus.h index 48ea8c4..ac61ba7 100644 --- a/src/yuescript/stacktraceplus.h +++ b/src/yuescript/stacktraceplus.h | |||
@@ -324,7 +324,7 @@ local function getYueLineNumber(fname, line) | |||
324 | source = yueCompiled["@="..fname] | 324 | source = yueCompiled["@="..fname] |
325 | end | 325 | end |
326 | if not source then | 326 | if not source then |
327 | local name_path = fname:gsub("%.", yue.dirsep) | 327 | local name_path = fname:gsub("%.", yue.options.dirsep) |
328 | local file_exist, file_path | 328 | local file_exist, file_path |
329 | for path in package.path:gmatch("[^;]+") do | 329 | for path in package.path:gmatch("[^;]+") do |
330 | file_path = path:gsub("?", name_path) | 330 | file_path = path:gsub("?", name_path) |