mirror of
https://github.com/Xevion/v1.xevion.dev.git
synced 2025-12-08 00:08:55 -06:00
PyCharm grand repo wide reformat
This commit is contained in:
@@ -1,4 +1,7 @@
|
||||
import logging, sys, os, json
|
||||
import json
|
||||
import logging
|
||||
import os
|
||||
import sys
|
||||
|
||||
# Path to API Credentials file
|
||||
PATH = os.path.join(sys.path[0], 'auth.json')
|
||||
@@ -9,11 +12,11 @@ if not os.path.exists(PATH):
|
||||
# Dump a pretty-printed dictionary with default values
|
||||
json.dump(
|
||||
{
|
||||
'USERNAME' : 'Your Username Here',
|
||||
'CLIENT_ID' : 'Your Client ID Here',
|
||||
'CLIENT_SECRET' : 'Your Client Secret Here',
|
||||
'REDIRECT_URI' : 'Your Redirect URI Callback Here',
|
||||
'SCOPE' : ['Your Scopes Here']
|
||||
'USERNAME': 'Your Username Here',
|
||||
'CLIENT_ID': 'Your Client ID Here',
|
||||
'CLIENT_SECRET': 'Your Client Secret Here',
|
||||
'REDIRECT_URI': 'Your Redirect URI Callback Here',
|
||||
'SCOPE': ['Your Scopes Here']
|
||||
},
|
||||
file,
|
||||
indent=3
|
||||
@@ -31,4 +34,4 @@ USERNAME = FILE['USERNAME']
|
||||
CLIENT_ID = FILE['CLIENT_ID']
|
||||
CLIENT_SECRET = FILE['CLIENT_SECRET']
|
||||
REDIRECT_URI = FILE['REDIRECT_URI']
|
||||
SCOPE = ' '.join(FILE['SCOPE'])
|
||||
SCOPE = ' '.join(FILE['SCOPE'])
|
||||
|
||||
Reference in New Issue
Block a user