mirror of
https://github.com/spotipy-dev/spotipy.git
synced 2026-04-26 16:15:51 +03:00
[PR #169] [MERGED] Add cache_path as an argument to prompt_for_user_token() #800
Labels
No labels
api-bug
bug
dependencies
documentation
duplicate
enhancement
external-ide
headless-mode
implicit-grant-flow
invalid
missing-endpoint
pr-welcome
private-api
pull-request
question
spotipy3
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/spotipy#800
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/spotipy-dev/spotipy/pull/169
Author: @jessejoe
Created: 3/8/2017
Status: ✅ Merged
Merged: 9/17/2017
Merged by: @plamere
Base:
master← Head:add_cache_path_param📝 Commits (1)
403ab1cAdd cache_path as an argument to prompt_for_user_token()📊 Changes
1 file changed (+4 additions, -2 deletions)
View changed files
📝
spotipy/util.py(+4 -2)📄 Description
Fixes #167
This allows overriding the default relative location of
cache_pathwhen callingprompt_for_user_token(). External scripts will be able to avoid creating a.cache-usernamefile in whatever directory the user happens to be in when the script is ran.I personally think
cache_pathshould default toos.path.join(os.path.expanduser('~'), '.cache-' + username)socache_pathalways references the same file in the user's$HOME, but that would probably break a lot of existing users.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.