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