Fix système arriver départ V1
This commit is contained in:
parent
01dd4979d8
commit
d9afa32828
18 changed files with 1367 additions and 291 deletions
|
|
@ -9,9 +9,14 @@ import logging
|
|||
|
||||
kuby_logger = logging.getLogger("KubyBot")
|
||||
|
||||
# --- CONFIGURATION ---
|
||||
CONV_SETTINGS_FILE = "data/convocation_settings.json"
|
||||
CONV_BACKUPS_FILE = "data/convocation_backups.json"
|
||||
# Chemins ABSOLUS
|
||||
BASE_DIR = os.path.dirname(os.path.abspath(__file__))
|
||||
DATA_DIR = os.path.join(BASE_DIR, "..", "data")
|
||||
CONV_SETTINGS_FILE = os.path.join(DATA_DIR, "convocation_settings.json")
|
||||
CONV_BACKUPS_FILE = os.path.join(DATA_DIR, "convocation_backups.json")
|
||||
|
||||
# Créer le dossier data/ s'il n'existe pas
|
||||
os.makedirs(DATA_DIR, exist_ok=True)
|
||||
|
||||
def load_json(filepath: str) -> Dict:
|
||||
if not os.path.exists(filepath):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue