# HG changeset patch # User souliane # Date 1457377113 -3600 # Node ID 116a558653645ad10a0b82caf6279a1a7cc412c0 # Parent 4f252b72b1936c328e62fc3124ccd78e5e792d1a frontends (jp / blog): pass the profile to subprocess when using option --preview diff -r 4f252b72b193 -r 116a55865364 frontends/src/jp/cmd_blog.py --- 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')