Ejemplo n.º 1
0
def populateTestScripts():
    global TEST_SCRIPTS

    thisScriptDir = Path(__file__).up()
    pathsToSearch = sys.path[:] + [thisScriptDir]
    for pyPath in pathsToSearch:
        pyPath = Path(pyPath)
        if pyPath.isDir():
            for f in pyPath.files():
                if f.hasExtension('py'):
                    if f.name().startswith('devTest_'):
                        TEST_SCRIPTS[f] = []