From 240e41712cf17411b6084574869c2c2213686501 Mon Sep 17 00:00:00 2001 From: Fredrik Soderblom Date: Thu, 30 Apr 2020 15:46:30 +0200 Subject: [PATCH 1/2] add missing entry in dictionary section for the unmunch binary. --- pwgen/__init__.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pwgen/__init__.py b/pwgen/__init__.py index aa69726..2fc10ed 100644 --- a/pwgen/__init__.py +++ b/pwgen/__init__.py @@ -35,6 +35,7 @@ def update_config( lang='en_US', word_min_char=2, word_max_char=0, + unmunch_bin='/usr/bin/unmunch', words=4, capitalize='random', @@ -63,6 +64,7 @@ def update_config( set_if_defined(conf, 'dictionary', 'lang', lang) set_if_defined(conf, 'dictionary', 'word_min_char', word_min_char) set_if_defined(conf, 'dictionary', 'word_max_char', word_max_char) + set_if_defined(conf, 'dictionary', 'unmunch_bin', unmunch_bin) if not conf.has_section('passwords'): conf.add_section('passwords') From ff4f93a2327b78042e000bede9263845b13ac8b2 Mon Sep 17 00:00:00 2001 From: Fredrik Eriksson Date: Thu, 30 Apr 2020 17:04:17 +0200 Subject: [PATCH 2/2] set unmunch_bin to an empty value by default --- pwgen/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pwgen/__init__.py b/pwgen/__init__.py index 2fc10ed..088333d 100644 --- a/pwgen/__init__.py +++ b/pwgen/__init__.py @@ -35,7 +35,7 @@ def update_config( lang='en_US', word_min_char=2, word_max_char=0, - unmunch_bin='/usr/bin/unmunch', + unmunch_bin='', words=4, capitalize='random',