Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
# 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)"
)
increment = ""
scrcpy_checker = po(
"scrcpy -v",
stdout=PIPE,