Skip to content

Commit

Permalink
Remove useless LuaXen macros
Browse files Browse the repository at this point in the history
  • Loading branch information
bytexenon committed Jun 22, 2024
1 parent 178da2d commit 02037b1
Showing 1 changed file with 9 additions and 14 deletions.
23 changes: 9 additions & 14 deletions MathParser.lua
Original file line number Diff line number Diff line change
@@ -1,27 +1,22 @@
--[[
Name: MathParser.lua
Author: ByteXenon [Luna Gilbert]
Date: 2024-04-25
Date: 2024-06-22
----------------
Do not edit this file, this file is just
a wrapper for the MathParser API.
--]]

local scriptPath, requirePath, localPath, oldPath
if not LUAXEN_PACKER then
-- Localize the path, so this file can be run from anywhere
scriptPath = (debug.getinfo(1).source:match("@?(.*/)") or "")
requirePath = scriptPath .. "./?.lua"
localPath = scriptPath .. "./"
oldPath = package.path
package.path = package.path .. ";" .. requirePath
end
-- Localize the path, so this file can be run from anywhere
local scriptPath = (debug.getinfo(1).source:match("@?(.*/)") or "")
local requirePath = scriptPath .. "./?.lua"
local localPath = scriptPath .. "./"
local oldPath = package.path
package.path = package.path .. ";" .. requirePath

local MathParser = require("src/MathParser")

if not LUAXEN_PACKER then
-- Reset package.path
package.path = oldPath
end
-- Reset package.path
package.path = oldPath

return MathParser

0 comments on commit 02037b1

Please sign in to comment.