changeset 1894:116a55865364

frontends (jp / blog): pass the profile to subprocess when using option --preview
author souliane <souliane@mailoo.org>
date Mon, 07 Mar 2016 19:58:33 +0100
parents 4f252b72b193
children ebbdb8aea71d
files frontends/src/jp/cmd_blog.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/frontends/src/jp/cmd_blog.py	Mon Mar 07 19:43:02 2016 +0100
+++ b/frontends/src/jp/cmd_blog.py	Mon Mar 07 19:58:33 2016 +0100
@@ -220,7 +220,7 @@
             # 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')