def _check_paths_for_exe(self):
        logger.debug("Checking through default path for {}".format(self.exec_file))

        found_exe = None

        def_paths = [os.getcwd()]  # Check current directory FIRST

        if self._is_windows_os():
            logger.debug("Running win32 environment")
            def_paths.extend(os.environ["PATH"].split(';'))
        else:
            logger.debug("Running non-win32 environment")
            def_paths.extend(os.environ["PATH"].split(':'))

        if len(def_paths) == 0:
            raise NoDefaultPaths

        logger.debug("Checking paths: {}".format(str(def_paths)))

        # Check through default paths
        for path in def_paths:
            if self._is_exe_in_path(path):
                # Found 
                found_exe = os.path.join(path, self.exec_file)
                break

        if found_exe is not None:
            logger.debug("Found executable: {}".format(found_exe))
        else:
            logger.debug("No {} executable found".format(self.exec_file))

        return found_exe
Checks for the executable in the OS default path
dataset/ETHPy150Open precurse/flacthis/audio_codecs.py/Codec._check_paths_for_exe