def merlin_bin():

    user_settings = sublime.load_settings("Merlin.sublime-settings")
    merlin_path = user_settings.get('ocamlmerlin_path')
    if merlin_path:
        return merlin_path

    # For Mac OS X, add the path for homebrew
    if "/usr/local/bin" not in os.environ['PATH'].split(os.pathsep):
        os.environ['PATH'] += os.pathsep + "/usr/local/bin"
    opam_process = subprocess.Popen('opam config var bin', stdout=subprocess.PIPE, shell=True)
    opam_bin_path = opam_process.stdout.read().decode('utf-8').rstrip() + '/ocamlmerlin'

    if os.path.isfile(opam_bin_path) and os.access(opam_bin_path, os.X_OK):
        return opam_bin_path
    else:
        return 'ocamlmerlin'
check if there are objects still using the default shader
dataset/ETHPy150Open cynddl/sublime-text-merlin/merlin/helpers.py/merlin_bin--crossover with--dataset/ETHPy150Open eoyilmaz/anima/anima/env/mayaEnv/publish.py/check_objects_still_using_default_shader