diff options
Diffstat (limited to 'core')
-rw-r--r-- | core/args.lua | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/core/args.lua b/core/args.lua index 8e76b395..08b74ffd 100644 --- a/core/args.lua +++ b/core/args.lua @@ -52,6 +52,10 @@ function M.process() f(table.unpack(args)) i = i + n else + if not arg[i]:find(not WIN32 and '^/' or '^%u:[/\\]') then + -- Convert relative path to absolute path. + arg[i] = lfs.currentdir()..(not WIN32 and '/' or '\\')..arg[i] + end io.open_file(arg[i]) no_args = false end |