def __init__(self, filePath=None, handler=None, protocolPath=None): """sets up exception handling method, and optionally reads from a file""" RaFile.__init__(self) self.handler = handler if handler == None: self.handler = self.raiseException if filePath == None: filePath = encodeUtils.defaultCvPath() self.protocolPath = protocolPath if protocolPath == None: self.protocolPath == os.path.expanduser("~/htdocsExtras/ENCODE/") self.missingTypes = set() self.read(filePath)
def __init__(self, filePath=None, handler=None, protocolPath=None): '''sets up exception handling method, and optionally reads from a file''' RaFile.__init__(self) self.handler = handler if handler == None: self.handler = self.raiseException if filePath == None: filePath = encodeUtils.defaultCvPath() self.protocolPath = protocolPath if protocolPath == None: self.protocolPath == os.path.expanduser('~/htdocsExtras/ENCODE/') self.missingTypes = set() self.read(filePath)
def __init__(self, filepath): RaFile.__init__(self) self.read(filepath)