def __init__(self):
        self.nmap_path = "/usr/bin/nmap"
        self.lib = True

        if not os.path.exists(self.nmap_path):
            try:
                import nmap
                self.lib = False
            except __HOLE__:
                mess = "Please install the python-nmap module (pip install nmap)!"
                raise CrowbarExceptions(mess)
            except:
                mess = "File: %s doesn't exists!" % self.nmap_path
                raise CrowbarExceptions(mess)
dataset/ETHPy150Open galkan/crowbar/lib/nmap.py/Nmap.__init__