def loadChildNodesFromPaths(pathList): """ Given a list of directories, import all classes that reside in modules in those directories into the node namespace. """ for path in pathList: nodeClassDict = depends_util.allClassesOfInheritedTypeFromDir(path, DagNode) for nc in nodeClassDict: globals()[nc] = nodeClassDict[nc]
def loadChildDataPacketsFromPaths(pathList): """ Given a list of directories, import all classes that inherit from DataPacket in those directories into the data_packet namespace. """ for path in pathList: dpClassDict = depends_util.allClassesOfInheritedTypeFromDir(path, DataPacket) for dpc in dpClassDict: globals()[dpc] = dpClassDict[dpc]
def loadChildRecipesFromPaths(pathList): """ Given a list of directories, import all classes that reside in modules in those directories into the node namespace. TODO better docs """ for path in pathList: recipeClassDict = depends_util.allClassesOfInheritedTypeFromDir(path, OutputRecipe) for rc in recipeClassDict: globals()[rc] = recipeClassDict[rc]
def loadChildNodesFromPaths(pathList): """ Given a list of directories, import all classes that reside in modules in those directories into the node namespace. """ for path in pathList: nodeClassDict = depends_util.allClassesOfInheritedTypeFromDir( path, DagNode) for nc in nodeClassDict: globals()[nc] = nodeClassDict[nc]
def loadChildRecipesFromPaths(pathList): """ Given a list of directories, import all classes that reside in modules in those directories into the node namespace. TODO better docs """ for path in pathList: recipeClassDict = depends_util.allClassesOfInheritedTypeFromDir( path, OutputRecipe) for rc in recipeClassDict: globals()[rc] = recipeClassDict[rc]