File: __init__.py

package info (click to toggle)
python-xbox-webapi 2.1.0-1.2
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 2,900 kB
  • sloc: python: 4,973; makefile: 79
file content (15 lines) | stat: -rw-r--r-- 455 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
import os

from platformdirs import user_data_dir

CLIENT_ID = "388ea51c-0b25-4029-aae2-17df49d23905"
# No secret needed, we registered as "Desktop App" in Azure AD
CLIENT_SECRET = ""
REDIRECT_URI = "http://localhost:8080/auth/callback"

DATA_DIR = user_data_dir("xbox", "OpenXbox")
TOKENS_FILE = os.path.join(DATA_DIR, "tokens.json")
XAL_TOKENS_FILE = os.path.join(DATA_DIR, "xal_tokens.json")

if not os.path.exists(DATA_DIR):
    os.makedirs(DATA_DIR)