Skip to content

Commit

Permalink
Update setrequirepath for Lua 5.3+.
Browse files Browse the repository at this point in the history
  • Loading branch information
agraef committed Sep 12, 2024
1 parent 9672a70 commit a407050
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pd.lua
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,10 @@ pd._setrequirepath = function(path)
pd._packagepath = package.path
pd._packagecpath = package.cpath
if (pd._iswindows) then
package.path = path .. "\\?;" .. path .. "\\?.lua;" .. package.path
package.path = path .. "\\?.lua;" .. path .. "\\?\\init.lua;" .. package.path
package.cpath = path .. "\\?.dll;" .. package.cpath
else
package.path = path .. "/?;" .. path .. "/?.lua;" .. package.path
package.path = path .. "/?.lua;" .. path .. "/?/init.lua;" .. package.path
package.cpath = path .. "/?.so;" .. package.cpath
end
end
Expand Down

0 comments on commit a407050

Please sign in to comment.