kokarare1212/librespot-python

[REQUEST] change stored_credentials path

van4oza opened this issue · 2 comments

I'm trying to use librespot in AWS Lambda, but the only RW dir there is /tmp. librespot keeps creating credentials file in os.getcwd(). even if I override it keeps getting back and failing

spotify_builder = Session.Builder()
spotify_builder.conf.stored_credentials_file = "/tmp/conf/spotify_credentials.json"
session = spotify_builder.user_pass("test@test.test", "mypswd").create()

Probably there is solution already?

thx!