How to use the guiscrcpy.__main__.bcolors.FAIL 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
)
        pass
    elif platform.system() == "Linux":

        print(
            "LOG: Detected a Linux Operating System :: ",
            platform.release(),
            platform.version(),
        )
        print("LOG: Installing Trebuchet MS font ...")
        os.system("mkdir ~/.fonts/")
        os.system("cp -r fonts/* ~/.fonts/")

    else:
        print(
            bcolors.FAIL,
            " MacOS :: Untested OS detected. Continuing >>> " +
            bcolors.ENDC,
        )
        pass

if not fileExist:

    # Init json file for first time use
    config = {
        'dimension': None,
        'swtouches': False,
        'bitrate': 8000,
        'fullscreen': False,
        'dispRO': False,
        'extra': ""}
    with open(cfgpath + jsonf, 'w') as f:
github srevinsaju / guiscrcpy / guiscrcpy / __main__.py View on Github external
# print("SUCCESS dispRO")
    except IndexError:
        dispRO0 = "False"
        # print("FAILED dispRO")
    """
    # print("LOG: Bitrate : ", bitrate0, " + Dimensions", dimension0, "")
    # print("LOG: Bitrate: ", bitrate0)
    # print("dispRO:", dispRO0)

if platform.system() == "Windows":
    if os.path.isfile("./scrcpy.exe"):
        increment = ".\\"
        # print(bcolors.BOLD + "LOG: Found scrcpy.exe in current directory.")
    else:
        print(
            bcolors.FAIL
            + " Found scrcpy.exe not found in current directory."
            + bcolors.ENDC
        )
        print(
            bcolors.BOLD +
            "LOG: Fallback to system PATH variable."+
            "Please add scrcpy to path." +
            bcolors.ENDC)
        increment = ""


else:
    if not fileExist:
        print(
            "LOG: One time checking for scrcpy executable." +
            "(Use RESET for rechecking)"