def getDrivers(): drivers = [] for f in [ os.path.basename(x).replace("driver.py", "") for x in glob.glob("./drivers/*driver.py") ]: if f != "abstract": drivers.append(f) return (drivers)
def getDrivers(): drivers = [] path_to_drivers = os.path.join(os.path.dirname(os.path.realpath(__file__)), "drivers/*driver.py") for f in [ os.path.basename(x).replace("driver.py", "") for x in glob.glob("./drivers/*driver.py") ]: if f != "abstract": drivers.append(f) return (drivers)
def getDrivers(): drivers = [] for f in map(lambda x: os.path.basename(x).replace("driver.py", ""), glob.glob("./drivers/*driver.py")): if f != "abstract": drivers.append(f) return (drivers)
def getDrivers(): drivers = [ ] for f in map(lambda x: os.path.basename(x).replace("driver.py", ""), glob.glob("./drivers/*driver.py")): if f != "abstract": drivers.append(f) return (drivers)