(basename: str)
return path
Returns the absolute path for a basename of a file in the cache directory.
Returns the absolute path for a basename of a file in the cache directory.
Returns the absolute path for a basename of a file in the cache directory .
def get_path(basename: str) -> str:
    """Returns the absolute path for a basename of a file in the cache directory."""
    path = os.path.join(conf.SONGS_CACHE_DIR, basename)
    path = path.replace("~", os.environ["HOME"])
    path = os.path.abspath(path)
    return path
def get_path ( basename : str ) -> str : path = os . path . join ( conf . SONGS_CACHE_DIR , basename ) path = path . replace ( "~" , os . environ [ "HOME" ] ) path = os . path . abspath ( path ) return path