def open(self, path):
        if not isinstance(path, str):
            raise TypeError("expecting a string type argument *path*")
        if not len(path) > 0:
             raise ValueError("argument *path* must not be empty")
    
        log.info("searching for reader with path '{0}'".format(path))

        with self.lock:
            self.dev = nfc.dev.connect(path)
        
        if self.dev is None:
            log.error("no reader found at '{0}'".format(path))
        else:
            log.info("using {0}".format(self.dev))
            
        return bool(self.dev)
Open a contactless reader device identified by *path*.
dataset/ETHPy150Open javgh/greenaddress-pos-tools/nfc/clf.py/ContactlessFrontend.open