示例#1
0
 def check():
     adb_path = check_existence(environment.paths(), ['adb'], False, True)
     if adb_path and (type(adb_path) is list):
         return adb_path[0]
     else:
         logging.error('adb could not be found in any of the paths {}'.format(
             environment.paths()))
示例#2
0
 def __init__(self):
     self.ping = check_existence(platform.System().paths(),
                                 'ping',
                                 path=True,
                                 directory=False)
     if len(self.ping) >= 1:
         self.ping = self.ping[0]
示例#3
0
 def check():
     scrcpy_path = check_existence(environment.paths(), ['scrcpy'], False, True)
     if scrcpy_path and (type(scrcpy_path) is list):
         return scrcpy_path[0]
     else:
         logging.error('scrcpy could not be found in any of the paths {}'.format(
             environment.paths()))