managementbot / Powers /__main__.py
Captain Ezio
automated uvloop installation
d334531
raw
history blame
589 Bytes
import os
from platform import system
from Powers import LOGGER
from Powers.bot_class import Gojo
if __name__ == "__main__":
if system() == "Windows":
LOGGER.info("Windows system detected thus not installing uvloop")
else:
LOGGER.info("Attempting to install uvloop")
try:
os.system("pip3 install uvloop==0.19.0")
import uvloop
uvloop.install()
LOGGER.info("Installed uvloop continuing the process")
except:
LOGGER.info("Failed to install uvloop continuing the process")
Gojo().run()