def get_current_status(self):
        proc = Popen(["python", "-c", "import %s; print %s.__path__" % (self.resource.package_name, self.resource.package_name)], stdout=PIPE, stderr=STDOUT)
        path = proc.communicate()[0]
        if proc.wait() != 0:
            self.current_version = None
        else:
            match = VERSION_RE.search(path)
            if match:
                self.current_version = match.group(3)
            else:
                self.current_version = "unknown"
dataset/ETHPy150Open samuel/kokki/kokki/providers/package/easy_install.py/EasyInstallProvider.get_current_status/original