Skip to content

Commit

Permalink
Merge pull request CogentRedTester#24 from duxovni/expand-path
Browse files Browse the repository at this point in the history
Make code for finding sub-select.json more flexible
  • Loading branch information
CogentRedTester authored Apr 23, 2023
2 parents 5d2fb7a + f36c4fb commit a23111e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sub-select.lua
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ local function type_check(val, t, required)
end

local function setup_prefs()
local file = assert(io.open(mp.command_native({"expand-path", o.config}) .. "/sub-select.json"))
local file = assert(io.open(mp.command_native({"expand-path", o.config .. "/sub-select.json"})))
local json = file:read("*all")
file:close()
prefs = utils.parse_json(json)
Expand Down

0 comments on commit a23111e

Please sign in to comment.