File tree 1 file changed +9
-14
lines changed
1 file changed +9
-14
lines changed Original file line number Diff line number Diff line change 1
1
--[[
2
2
Name: MathParser.lua
3
3
Author: ByteXenon [Luna Gilbert]
4
- Date: 2024-04-25
4
+ Date: 2024-06-22
5
5
----------------
6
6
Do not edit this file, this file is just
7
7
a wrapper for the MathParser API.
8
8
--]]
9
9
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
19
16
20
17
local MathParser = require (" src/MathParser" )
21
18
22
- if not LUAXEN_PACKER then
23
- -- Reset package.path
24
- package.path = oldPath
25
- end
19
+ -- Reset package.path
20
+ package.path = oldPath
26
21
27
22
return MathParser
You can’t perform that action at this time.
0 commit comments