Example #1
0
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)
Example #2
0
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)
Example #3
0
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)
Example #4
0
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)