def pyv8_load(self, modules):
        for i in range(len(modules)):
            fname = modules[i]
            try:
                fp = open(fname, 'r')
                # XXX: Very bad hack! Do something about encoding of Translator
                txt = fp.read().decode('latin1')
                fp.close()            
                x = self.__context__.eval(txt)
            except Exception, e:
                raise ImportError("Failed to load %s: '%s'" % (fname, e))
dataset/ETHPy150Open anandology/pyjamas/pyv8/jsglobal.py/Global.pyv8_load/original