# Path: install.py
# def set_pip_test(value):
#     global SKIP_PIP_TEST
#     SKIP_PIP_TEST = value
# 
# def main_install():
#     print(Back.CYAN + Style.BRIGHT + warning)
#     print(Back.CYAN + "Installing Required components to get this bot up and running")
#     for index, command in enumerate(commands):
#         print(Back.CYAN + "Component {}: {}{}".format(index, Fore.RED, command[0]) + Fore.WHITE)
#         command_runner(command[1])


import logging
import logging.config
import os
import signal
import sip
import sys
import time
import traceback
import click
import yaml
        import sys
    import bot
from apscheduler.schedulers.background import BackgroundScheduler
from install import set_pip_test, main_install
    from bot.duel_links_runtime import DuelLinkRunTime
    from bot import logger
    from bot.providers import get_provider
    from bot.utils.common import make_config_file
        from bot import logger
        from bot.utils.common import make_config_file, default_config
        from PyQt5.QtWidgets import QSystemTrayIcon
        from PyQt5.QtWidgets import QMessageBox
        from PyQt5.QtWidgets import QApplication
        from bot.utils.common import make_config_file, default_config
        from bot.duel_links_runtime import DuelLinkRunTime
        from bot.dl_gui import DuelLinksGui
        from bot import logger
        QApplication.setQuitOnLastWindowClosed(False)

        uconfig = default_config()
        uconfig.read(config_file)
        dlRuntime = setup_runtime(uconfig)
        dlRuntime.main()
        window = DuelLinksGui(dlRuntime, uconfig.get('locations', 'assets'))
        window.show()

        def handler(signum, frame):
            if signum == signal.SIGINT:
                window.__quit__()
                logger.info("Exiting Yugioh-DuelLinks Bots")

        signal.signal(signal.SIGINT, handler)

        def inmain():
            return app.exec_()

        sys.exit(inmain())


@click.command()
def version():
    print("Using {}".format(bot.__version__))


@click.command()
def setup():
    set_pip_test(True)

# Path: install.py
# def set_pip_test(value):
#     global SKIP_PIP_TEST
#     SKIP_PIP_TEST = value
# 
# def main_install():
#     print(Back.CYAN + Style.BRIGHT + warning)
#     print(Back.CYAN + "Installing Required components to get this bot up and running")
#     for index, command in enumerate(commands):
#         print(Back.CYAN + "Component {}: {}{}".format(index, Fore.RED, command[0]) + Fore.WHITE)
#         command_runner(command[1])


# Path: main.py
import logging
import logging.config
import os
import signal
import sip
import sys
import time
import traceback
import click
import yaml
        import sys
    import bot
from apscheduler.schedulers.background import BackgroundScheduler
from install import set_pip_test, main_install
    from bot.duel_links_runtime import DuelLinkRunTime
    from bot import logger
    from bot.providers import get_provider
    from bot.utils.common import make_config_file
        from bot import logger
        from bot.utils.common import make_config_file, default_config
        from PyQt5.QtWidgets import QSystemTrayIcon
        from PyQt5.QtWidgets import QMessageBox
        from PyQt5.QtWidgets import QApplication
        from bot.utils.common import make_config_file, default_config
        from bot.duel_links_runtime import DuelLinkRunTime
        from bot.dl_gui import DuelLinksGui
        from bot import logger

        QApplication.setQuitOnLastWindowClosed(False)

        uconfig = default_config()
        uconfig.read(config_file)
        dlRuntime = setup_runtime(uconfig)
        dlRuntime.main()
        window = DuelLinksGui(dlRuntime, uconfig.get('locations', 'assets'))
        window.show()

        def handler(signum, frame):
            if signum == signal.SIGINT:
                window.__quit__()
                logger.info("Exiting Yugioh-DuelLinks Bots")

        signal.signal(signal.SIGINT, handler)

        def inmain():
            return app.exec_()

        sys.exit(inmain())


@click.command()
def version():
    print("Using {}".format(bot.__version__))


@click.command()
def setup():
    set_pip_test(True)

    main_install()