Skip to content

Commit

Permalink
Fixed not finding <TOOL_PATH>/../SelenScript
Browse files Browse the repository at this point in the history
*Only affected development*
  • Loading branch information
Avril112113 committed May 5, 2024
1 parent 2db5aac commit a8a5152
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.lua
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ local TOOL_PATH = MAIN_PATH:find("[\\/]") and MAIN_PATH:gsub("[\\/][^\\/]*$", ""
local SELENSCRIPT_PATH_LOCAL = "SelenScript"
do
-- Directory existence check, works on Windows and Linux
local f, _, code = io.open("../SelenScript", "r")
local f, _, code = io.open(TOOL_PATH .. "/../SelenScript", "r")
if code == 13 or (f and select(3, f:read()) == 21) then
if f then f:close() end
SELENSCRIPT_PATH_LOCAL = "../SelenScript"
Expand Down

0 comments on commit a8a5152

Please sign in to comment.