Exemple #1
0
 def helper(self,src,classname):
     try:
         createPackageStructure(src,testdata.TheClass)
         classobj = getTypeOf(getModule(pkgstructureFile1),classname,[pkgstructureRootDir])
         return getRootClassesOfHierarchy(classobj,[pkgstructureRootDir])
     finally:
         removePackageStructure()
 def helper(self,importsrc,src,name):
     try:
         createPackageStructure(importsrc,src)
         from bike.parsing.newstuff import getModule
         scope = getModule(pkgstructureFile1)
         return getTypeOf(scope,name)
     finally:
         removePackageStructure()
 def getChild(self,name):
     from bike.parsing.newstuff import getModule
     return getModule(os.path.join(self.path,name+".py"))