mirror of
https://github.com/Xevion/spotify-explicit.git
synced 2025-12-06 03:16:34 -06:00
commenting work
This commit is contained in:
4
auth.py
4
auth.py
@@ -1,6 +1,6 @@
|
|||||||
import logging, sys, os, json
|
import logging, sys, os, json
|
||||||
|
|
||||||
# Open the file and get keys
|
# Path to API Credentials file
|
||||||
PATH = os.path.join(sys.path[0], 'auth.json')
|
PATH = os.path.join(sys.path[0], 'auth.json')
|
||||||
|
|
||||||
# Ensure the file exists, if not, generate one and error with a reason
|
# Ensure the file exists, if not, generate one and error with a reason
|
||||||
@@ -22,6 +22,8 @@ if not os.path.exists(PATH):
|
|||||||
logging.critical("No \'auth.json\' file detected, one has been created for you")
|
logging.critical("No \'auth.json\' file detected, one has been created for you")
|
||||||
logging.critical("Please fill out with your Spotify credentials, and then restart the program")
|
logging.critical("Please fill out with your Spotify credentials, and then restart the program")
|
||||||
sys.exit()
|
sys.exit()
|
||||||
|
|
||||||
|
# Open and parse file
|
||||||
FILE = json.load(open(PATH, 'r'))
|
FILE = json.load(open(PATH, 'r'))
|
||||||
|
|
||||||
# Load all configuration variables
|
# Load all configuration variables
|
||||||
|
|||||||
Reference in New Issue
Block a user