def _get_res(self, profile_name):
        log.debug("Getting firefox path for profile name: {}".format(profile_name))

        ff_profile = self.available_profiles.get(profile_name)
        res_file = "jetpack/jid1-xUfzOsOFlzSOXg@jetpack/simple-storage/store.json"

        if not ff_profile:
            log.error("Could not get selected profile path for {}".format(profile_name))
            return None

        if self.os == 'linux':
            res_folder = self._expand("~/.mozilla/firefox/")

        elif self.os == 'windows':
            if platform.release() == "XP":
                log.error("Unsupported OS (Windows XP). Returning None")
                return None

            res_folder = self._expand("%APPDATA%\\Mozilla\\Firefox\\")

        elif self.os == "darwin":
            res_folder = self._expand("~/Library/Mozilla/Firefox/")
            if not os.path.exists(res_folder):
                res_folder = self._expand("~/Library/Application Support/Firefox/")

        else:
            log.error("Unsupported OS: {} Returning None".format(self.os))
            return None

        log.debug("Firefox res_folder set to: {}".format(res_folder))

        try:
            full_path = os.path.join(res_folder, ff_profile, res_file)
            log.debug("Full firefox path set to {}".format(full_path))

            if os.path.exists(full_path):
                log.debug("Full firefox path exists")
                return full_path
            else:
                log.error("Full firefox path does not exist. RES Not installed?")
                return None

        except __HOLE__:
            log.error("Firefox joining failed for {}, {} and {}".format(res_folder, ff_profile, res_file))
            return None

        except Exception as e:
            log.exception(e)
dataset/ETHPy150Open Nikola-K/RESTool/RESTool/browsers/firefox.py/Firefox._get_res