From 02037b14429725d8a1466deb7c720a33617d03c0 Mon Sep 17 00:00:00 2001 From: Luna Davis Date: Sat, 22 Jun 2024 08:37:41 -0700 Subject: [PATCH] Remove useless LuaXen macros --- MathParser.lua | 23 +++++++++-------------- 1 file changed, 9 insertions(+), 14 deletions(-) diff --git a/MathParser.lua b/MathParser.lua index 1892fa7..ca83b62 100644 --- a/MathParser.lua +++ b/MathParser.lua @@ -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