From fdb7bd904b3182828803ae78b06c5b0558fa946e Mon Sep 17 00:00:00 2001
From: Blitz
Date: Tue, 17 Jan 2017 20:09:38 +0100
Subject: [PATCH] Fix selected module with args
See https://github.com/AlessandroZ/LaZagne/issues/101
Tested.
---
Windows/laZagne.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/Windows/laZagne.py b/Windows/laZagne.py
index 85d2b36d..fd511fcd 100755
--- a/Windows/laZagne.py
+++ b/Windows/laZagne.py
@@ -214,7 +214,7 @@ def error(self, message):
self.print_help()
sys.exit(2)
-def runLaZagne(category_choosed=str(sys.argv[1])):
+def runLaZagne(category_choosed='all'):
# ------ Part used for user impersonation ------
@@ -370,7 +370,7 @@ def runLaZagne(category_choosed=str(sys.argv[1])):
start_time = time.time()
- for r in runLaZagne():
+ for r in runLaZagne(category_choosed):
pass
write_in_file(stdoutRes)