Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion data/core/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,12 @@ function core.init()
for i = 2, #ARGS do
local info = system.get_file_info(ARGS[i]) or {}
if info.type == "file" then
table.insert(files, system.absolute_path(ARGS[i]))
local abs_path = system.absolute_path(ARGS[i])
table.insert(files, abs_path)
local dir = abs_path:match("^(.*)[/\\]")
if dir then
project_dir = dir
end
elseif info.type == "dir" then
project_dir = ARGS[i]
end
Expand Down