Skip to content

Commit 02037b1

Browse files
committed
Remove useless LuaXen macros
1 parent 178da2d commit 02037b1

File tree

1 file changed

+9
-14
lines changed

1 file changed

+9
-14
lines changed

MathParser.lua

+9-14
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,22 @@
11
--[[
22
Name: MathParser.lua
33
Author: ByteXenon [Luna Gilbert]
4-
Date: 2024-04-25
4+
Date: 2024-06-22
55
----------------
66
Do not edit this file, this file is just
77
a wrapper for the MathParser API.
88
--]]
99

10-
local scriptPath, requirePath, localPath, oldPath
11-
if not LUAXEN_PACKER then
12-
-- Localize the path, so this file can be run from anywhere
13-
scriptPath = (debug.getinfo(1).source:match("@?(.*/)") or "")
14-
requirePath = scriptPath .. "./?.lua"
15-
localPath = scriptPath .. "./"
16-
oldPath = package.path
17-
package.path = package.path .. ";" .. requirePath
18-
end
10+
-- Localize the path, so this file can be run from anywhere
11+
local scriptPath = (debug.getinfo(1).source:match("@?(.*/)") or "")
12+
local requirePath = scriptPath .. "./?.lua"
13+
local localPath = scriptPath .. "./"
14+
local oldPath = package.path
15+
package.path = package.path .. ";" .. requirePath
1916

2017
local MathParser = require("src/MathParser")
2118

22-
if not LUAXEN_PACKER then
23-
-- Reset package.path
24-
package.path = oldPath
25-
end
19+
-- Reset package.path
20+
package.path = oldPath
2621

2722
return MathParser

0 commit comments

Comments
 (0)