From 4e4461f7f8262f536b184634517970f205117164 Mon Sep 17 00:00:00 2001 From: piair Date: Thu, 26 May 2022 08:20:02 +0200 Subject: [PATCH] enable default linux worldlist support --- V4.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/V4.py b/V4.py index 38893db..75dc2e3 100755 --- a/V4.py +++ b/V4.py @@ -90,7 +90,11 @@ sql_host = config["SQL"]["host"] sql_database = config["SQL"]["database"] g = open(MotPath, "r", encoding="utf-8") -Liste_de_mot = list(g.readline().split(",")) +lines = g.readlines() +if len(lines) < 3 : + Liste_de_mot = list(lines[0].split(",")) +else : + Liste_de_mot = [x.replace('\n', "") for x in lines] g.close()