From 78fc77fcc607c10dc60a44f2262e848c24f600d6 Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Sun, 8 Mar 2020 23:09:51 +0100 Subject: ... --- notmuch-ssh-server | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'notmuch-ssh-server') diff --git a/notmuch-ssh-server b/notmuch-ssh-server index 3ff0559..0dc8cc2 100644 --- a/notmuch-ssh-server +++ b/notmuch-ssh-server @@ -33,8 +33,8 @@ if len(original_command) < 1: config_section = original_command[0] logging.debug("Config section: %s", config_section) -command_environment = config[config_section] if config.has_section(config_section) else config[config.default_section] -logging.info("Command environment: %s", command_environment) +config_environment = config[config_section] if config.has_section(config_section) else config[config.default_section] +logging.info("Config environment: %s", config_environment) logging.info("notmuch %s", original_command[1:]) -os.execvpe('@notmuch@/bin/notmuch', original_command[1:], command_environment) +os.execvpe('@notmuch@/bin/notmuch', original_command[1:], {**os.environ, **config_environment}) -- cgit v1.2.3