From 9d6577aa60c69acd40312bfce11b6a0100166cbe Mon Sep 17 00:00:00 2001
From: pfleu <pierre.fleutot@audemarspiguet.com>
Date: Thu, 17 Apr 2025 10:35:24 +0200
Subject: [PATCH] Fix wikstraktor en local avec Wamp. Modif wikstraktor.py
 ajout lien vers sources python

---
 src/Manager/WiktionaryManager.php | 1 +
 src/Wikstraktor/wikstraktor.py    | 4 ++++
 2 files changed, 5 insertions(+)

diff --git a/src/Manager/WiktionaryManager.php b/src/Manager/WiktionaryManager.php
index e505232..3da2fcd 100644
--- a/src/Manager/WiktionaryManager.php
+++ b/src/Manager/WiktionaryManager.php
@@ -75,6 +75,7 @@ class WiktionaryManager
         if ($_ENV['WIKTIONARY_TOOL'] == 'WIKSTRAKTOR') {
             $command = $_ENV['WIKSTRAKTOR_COMMAND'] . ' -l ' . $language . ' -w ' . $dictLanguage . ' -m "' . $word . '" -A -C 2>&1';
             $result = exec($command);
+//            dump($output, $return_var, $command);die();
             //dump($word);dump($command);dump(microtime(true)-$time_start);dump($result);die();/*Debug*/
         } else {
 
diff --git a/src/Wikstraktor/wikstraktor.py b/src/Wikstraktor/wikstraktor.py
index dae7979..a9567b6 100755
--- a/src/Wikstraktor/wikstraktor.py
+++ b/src/Wikstraktor/wikstraktor.py
@@ -1,4 +1,8 @@
 #!/usr/bin/env python3
+
+import sys
+sys.path.append("C:\\Users\\Ordinateur\\AppData\\Roaming\\Python\\Python39\\site-packages")
+
 import pywikibot
 import wikitextparser
 import importlib
-- 
GitLab