Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
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 = ""