Пример #1
0
 def loadFromFile(module):
     docat = Documentation.gopher[module]
     if Documentation.loaded.has_key(docat):
         # already loaded
         Documentation.gopher[module] = Documentation.loaded[docat]
     else:
         import cPickle, os.path
         moduledir = robin.here(module.__file__)
         docdb = _find_datafile(Documentation.gopher[module], [moduledir])
         Documentation.gopher[module] = Documentation.loaded[docat] \
            = cPickle.load(docdb)
Пример #2
0
	def loadFromFile(module):
		docat = Documentation.gopher[module]
		if Documentation.loaded.has_key(docat):
			# already loaded
			Documentation.gopher[module] = Documentation.loaded[docat]
		else:
			import cPickle, os.path
			moduledir = robin.here(module.__file__)
			docdb = _find_datafile(Documentation.gopher[module], [moduledir])
			Documentation.gopher[module] = Documentation.loaded[docat] \
				  = cPickle.load(docdb)
Пример #3
0
import robin, stl
import os.path
robin.loadLibrary(__name__, os.path.join(robin.here(__file__), 
                                         "libmemprof.so"))
Пример #4
0
import robin, stl
import os.path
robin.loadLibrary(__name__, os.path.join(robin.here(__file__),
                                         "liblanguage.so"))
Пример #5
0
import robin, stl
import os.path
robin.loadLibrary(__name__,
                  os.path.join(robin.here(__file__), "libinheritance.so"))
Пример #6
0
import robin, stl
import os.path
robin.loadLibrary(__name__,
                  os.path.join(robin.here(__file__), "libtemplates.so"))