Loading files
This file is pinned to the selected release. Download the original to open it in your design tool.
1dc1ac8a3This file is pinned to the selected release. Download the original to open it in your design tool.
import json
import os
def get_spotipy_auth():
f = open('/home/musicpi/SpotiStation/.creds') #TODO generalise
credentials = json.load(f)
for k,v in credentials.items():
print(f"setting {v} to ${k}")
os.environ[k] = str(v)