From ed5096265978d68a643be497a1aa6fcc6d92085c Mon Sep 17 00:00:00 2001
From: ppouchet <pierre.pouchet@etu.ec-lyon.fr>
Date: Mon, 24 Mar 2025 12:10:41 +0100
Subject: [PATCH] =?UTF-8?q?C'est=20bon=20=C3=A7a=20marche=20avec=20chemin?=
 =?UTF-8?q?=20relatif=20pour=20words=5Falpha?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 Motus/CMakeLists.txt  | 3 +++
 Motus/wordchooser.cpp | 2 +-
 2 files changed, 4 insertions(+), 1 deletion(-)

diff --git a/Motus/CMakeLists.txt b/Motus/CMakeLists.txt
index 476030b..ee8b9c0 100644
--- a/Motus/CMakeLists.txt
+++ b/Motus/CMakeLists.txt
@@ -34,6 +34,9 @@ qt_add_qml_module(appMotus
         RESOURCES back_key.png
         RESOURCES
         RESOURCES
+        RESOURCES
+        RESOURCES words_alpha.txt
+        RESOURCES words_alpha.txt
         RESOURCES words_alpha.txt
         RESOURCES words_alpha.txt
         RESOURCES words_alpha.txt
diff --git a/Motus/wordchooser.cpp b/Motus/wordchooser.cpp
index 52e1ccc..fd4b79b 100644
--- a/Motus/wordchooser.cpp
+++ b/Motus/wordchooser.cpp
@@ -12,7 +12,7 @@ WordChooser::WordChooser(QObject *parent) : QObject(parent) {
 }
 
 void WordChooser::loadWords() {
-    QFile file("C:\\Users\\pierr\\OneDrive\\Documents\\GitHub\\momomotus\\momomotus\\Motus\\words_alpha.txt");     // ✅ fonctionne avec le .qrc
+    QFile file("Motus\\words_alpha.txt");     // ✅ fonctionne avec le .qrc
     if (file.open(QIODevice::ReadOnly | QIODevice::Text)) {
         QTextStream in(&file);
         while (!in.atEnd()) {
-- 
GitLab