1
0
forked from jchomaz/Vulture

(fix) VNode: portable path

This commit is contained in:
2025-11-15 15:51:06 +01:00
parent 3e29bfca18
commit 1ff31e0991
3 changed files with 5 additions and 3 deletions

View File

@@ -1,8 +1,9 @@
const fs = require('fs');
const mqtt = require('mqtt');
const path = require('path');
// Lecture du fichier de configuration
const config = JSON.parse(fs.readFileSync('\services\\config\\config_game.json', 'utf8'));
const config = JSON.parse(fs.readFileSync(path.join('services','config','config_game.json'), 'utf8'));
// Extraction des informations de config
const { services: { mqttHost, quizzcollector: { MQTTconfig: { mqttQuizzCollectorListTopic, mqttQuizzCollectorCmdTopic } } } } = config;