From 052336ab538355ecc5d4e0201a8222e53985de72 Mon Sep 17 00:00:00 2001 From: Abhradeep De <68565872+abhra2020-smart@users.noreply.github.com> Date: Mon, 29 Nov 2021 19:33:29 +0000 Subject: [PATCH] Update SetupPremake.py No need for @classmethod --- scripts/SetupPremake.py | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/scripts/SetupPremake.py b/scripts/SetupPremake.py index 729c489e5..9303733ed 100644 --- a/scripts/SetupPremake.py +++ b/scripts/SetupPremake.py @@ -10,8 +10,7 @@ class PremakeConfiguration: premakeLicenseUrl = "https://raw.githubusercontent.com/premake/premake-core/master/LICENSE.txt" premakeDirectory = "./vendor/premake/bin" - @classmethod - def Validate(cls): + def Validate(self): if (not cls.CheckIfPremakeInstalled()): print("Premake is not installed.") return False @@ -19,16 +18,14 @@ def Validate(cls): print(f"Correct Premake located at {os.path.abspath(cls.premakeDirectory)}") return True - @classmethod - def CheckIfPremakeInstalled(cls): + def CheckIfPremakeInstalled(self): premakeExe = Path(f"{cls.premakeDirectory}/premake5.exe"); if (not premakeExe.exists()): - return cls.InstallPremake() + return self.InstallPremake() return True - @classmethod - def InstallPremake(cls): + def InstallPremake(self): permissionGranted = False while not permissionGranted: reply = str(input("Premake not found. Would you like to download Premake {0:s}? [Y/N]: ".format(cls.premakeVersion))).lower().strip()[:1]