def METHOD_NAME(self, in_final_dir):
    pylibdir = os.path.join(self.installdir, det_pylibdir())
    shlib_ext = get_shared_lib_ext()
    if in_final_dir:
        # The build has already taken place so the file will have been moved into the final pylibdir
        tkinter_so = os.path.join(pylibdir, '_tkinter*.' + shlib_ext)
    else:
        tkinter_so = os.path.join(os.path.dirname(pylibdir), 'lib-dynload', '_tkinter*.' + shlib_ext)
    tkinter_so_hits = glob.glob(tkinter_so)
    if len(tkinter_so_hits) != 1:
        raise EasyBuildError("Expected to find exactly one _tkinter*.so: %s", tkinter_so_hits)
    tkinter_so_basename = os.path.basename(tkinter_so_hits[0])
    return tkinter_so_basename