diff options
Diffstat (limited to 'core/args.lua')
-rw-r--r-- | core/args.lua | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/core/args.lua b/core/args.lua index 108820eb..6fd18841 100644 --- a/core/args.lua +++ b/core/args.lua @@ -57,12 +57,7 @@ function M.process(arg) f(table.unpack(args)) i = i + n else - if not arg[i]:find(not WIN32 and '^/' or '^%a:[/\\]') then - -- Convert relative path to absolute path. - local cwd = arg[-1] or lfs.currentdir() - arg[i] = cwd..(not WIN32 and '/' or '\\')..arg[i] - end - io.open_file(arg[i]) + io.open_file(lfs.abspath(arg[i])) no_args = false end i = i + 1 |