omz:forum

    • Register
    • Login
    • Search
    • Recent
    • Popular

    Welcome!

    This is the community forum for my apps Pythonista and Editorial.

    For individual support questions, you can also send an email. If you have a very short question or just want to say hello — I'm @olemoritz on Twitter.


    Spotipy Environmental Variables Import OS

    Pythonista
    1
    2
    620
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • john.caprino
      john.caprino last edited by

      I am on an iPad. Trying to use Spotipy and it requires environmental variables to be set. Is there a way I can set environmental variables? I have tried import os, then using os.putnev but import os doesn't work. Any ideas or workarounds?

      1 Reply Last reply Reply Quote 0
      • john.caprino
        john.caprino last edited by john.caprino

        Nevermind, I figured it out. Instead of using environmental variables I had to use a redirect url and put the CLIENT_ID and CLIENT_SECRET in as variables.

        1 Reply Last reply Reply Quote 0
        • First post
          Last post
        Powered by NodeBB Forums | Contributors