From ce507c49dac47fef704f43407a3535b151a8264f Mon Sep 17 00:00:00 2001 From: souliane Date: Mon, 7 Mar 2016 19:58:33 +0100 Subject: [PATCH] frontends (jp / blog): pass the profile to subprocess when using option --preview --- frontends/src/jp/cmd_blog.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontends/src/jp/cmd_blog.py b/frontends/src/jp/cmd_blog.py index 569f7a6f..336cb04c 100644 --- a/frontends/src/jp/cmd_blog.py +++ b/frontends/src/jp/cmd_blog.py @@ -220,7 +220,7 @@ class Edit(base.CommandBase, BlogCommon): # we redirect outputs to /dev/null to avoid console pollution in editor # if user wants to see messages, (s)he can call "blog preview" directly DEVNULL = open(os.devnull, 'wb') - subprocess.Popen([sys.argv[0], "blog", "preview", "--inotify", "true", content_file_path], stdout=DEVNULL, stderr=subprocess.STDOUT) + subprocess.Popen([sys.argv[0], "blog", "preview", "--inotify", "true", "-p", self.profile, content_file_path], stdout=DEVNULL, stderr=subprocess.STDOUT) # then we launch editor editor = config.getConfig(sat_conf, 'jp', 'editor') or os.getenv('EDITOR', 'vi')