-
Notifications
You must be signed in to change notification settings - Fork 24
/
constants.py
29 lines (22 loc) · 882 Bytes
/
constants.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
from pathlib import Path
from appdirs import user_data_dir
import os
PORT_IP = '21337'
LOCAL_MATCH = '/positional-rectangles'
LOCAL_DECK = '/static-decklist'
LOCAL_RESULT = '/game-result'
IP_KEY = 'http://127.0.0.1:'
LEADERBOARD_KEY = '.api.riotgames.com/lor/ranked/v1/leaderboards/'
VERSION_NUM = 'v0.13.11'
SERVER_NUM = 'v3.0'
DISPLAY_TITLE = 'LoR Master Tracker'
DEFAULT_LANGUAGE = 'en-US'
UNSUPPORTED_MODE = ['Expeditions', 'Mods_URF', 'Power2', 'Mods_Power_1', 'Power_4']
UNSUPPORTED_TYPE = ['AI']
SUPPORTED_MODE = ['SeasonalTournamentLobby',
'LastCallQualifierGauntletLobby', 'Bo3ChallengeLobby', 'StandardGauntlet', 'Constructed']
appDir = user_data_dir('LMT', DISPLAY_TITLE)
def getCacheFilePath(fileName, subDir='backend'):
filePath = Path(appDir, subDir, fileName)
os.makedirs(os.path.dirname(filePath), exist_ok=True)
return filePath