frontends (jp / blog): pass the profile to subprocess when using option --preview
This commit is contained in:
parent
fe340c0135
commit
ce507c49da
1 changed files with 1 additions and 1 deletions
|
|
@ -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')
|
||||
|
|
|
|||
Loading…
Reference in a new issue