示例#1
0
文件: robinhelp.py 项目: mishas/robin
 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
文件: robinhelp.py 项目: andik/robin
	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
文件: memprof.py 项目: andik/robin
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"))