How to use the guiscrcpy.__main__.bcolors.ENDC function in guiscrcpy

To help you get started, we’ve selected a few guiscrcpy examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github srevinsaju / guiscrcpy / guiscrcpy / __main__.py View on Github external
if not fileExist:
        print(
            "LOG: One time checking for scrcpy executable." +
            "(Use RESET for rechecking)"
        )
        increment = ""
        scrcpy_checker = po(
            "scrcpy -v",
            stdout=PIPE,
            stderr=PIPE,
            shell=True)
        if scrcpy_checker.stderr.read().decode("utf-8").find("not found") != -1:
            print(
                bcolors.FAIL +
                " Failed to find scrcpy on path. 'Start Scrcpy' may not work" +
                bcolors.ENDC)
        else:
            print(
                "LOG: Scrcpy found " +
                scrcpy_checker.stdout.read().decode("utf-8"))

    else:
        increment = ""


# ***************************
# BEGIN ENGIN CODE
# ***************************

def invokeScrcpy():
    optPass = ""