Ejemplo n.º 1
0
def Usable(entity_type, entity_ids_arr):
    """Can run on a directory only, on Windows, in asynchronous mode"""
    if not lib_util.UsableWindows(entity_type, entity_ids_arr):
        return False
    if not lib_util.UsableAsynchronousSource(entity_type, entity_ids_arr):
        return False
    dirNam = entity_ids_arr[0]
    return os.path.isdir(dirNam)
Ejemplo n.º 2
0
def Usable(entity_type,entity_ids_arr):
	"""Linux, asynchronous mode"""
	return lib_util.UsableLinux(entity_type,entity_ids_arr) and lib_util.UsableAsynchronousSource(entity_type,entity_ids_arr)