Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
stdout=subprocess.PIPE,
stderr=subprocess.PIPE)
a1 = inf.stdout.read().decode("utf-8")
dirch = a1[:a1.find("guiscrcpy-src-installer.sh")]
cmd = "cd " + dirch + " ; " + "./guiscrcpy-src-installer.sh"
os.system(cmd)
sys.exit()
else:
print("Installation supported on Linux only")
sys.exit()
print()
print(
"MSG: Please ensure you have enabled",
bcolors.OKGREEN + "USB Debugging" + bcolors.ENDC,
"on your device. See README.md for more details",
)
# print("LOG: Current Working Directory >> ", os.getcwd())
# print('LOG: __file__ name >> ', str(__file__))
# print("LOG: os.path Absolute Path >> ", os.path.abspath(__file__))
print("LOG: Current Working Directory", os.getcwd())
print(
"LOG: Script Path >> ",
str(os.path.abspath(__file__))[: -len(filename)],
)
print("")
# ******************************
# CONFIGURATION FILE CHECKER