예제 #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)
예제 #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)
예제 #3
0
파일: tpcc.py 프로젝트: vidyam89/py-tpcc
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)
예제 #4
0
파일: tpcc.py 프로젝트: jxfeng/py-tpcc
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)