File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11--[[
22 Name: MathParser.lua
33 Author: ByteXenon [Luna Gilbert]
4- Date: 2024-01-10
4+ Date: 2024-04-25
5+ ----------------
6+ Do not edit this file, this file is just
7+ a wrapper for the MathParser API.
58--]]
69
7- -- Localize the path, so this file can be run from anywhere
8- local scriptPath = (debug.getinfo (1 ).source :match (" @?(.*/)" ) or " " )
9- local requirePath = scriptPath .. " ./?.lua"
10- local localPath = scriptPath .. " ./"
11- local oldPath = package.path
12- package.path = package.path .. " ;" .. requirePath
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
1319
1420local MathParser = require (" src/MathParser" )
1521
16- -- Reset package.path
17- package.path = oldPath
22+ if not LUAXEN_PACKER then
23+ -- Reset package.path
24+ package.path = oldPath
25+ end
1826
19- return MathParser
27+ return MathParser
You can’t perform that action at this time.
0 commit comments