INNER CODE UNIT · Python
Validate
Ershany/Arcane-Engine · Setup/PremakeSetup.py:14
def Validate(config):
if not config.CheckIfPremakeIsInstalled():
print("Premake is not installed")
return False
print(f"Correct Premake located at {os.path.abspath(config.premakeDirectory)}")
return True
@classmethod
def CheckIfPremakeIsInstalled(config):
premakeExe = Path(f"{config.premakeDirectory}/premake5.exe")
if not premakeExe.exists():
return config.InstallPremake()
return True
@classmethod
def InstallPremake(config):