Skip to content

Commit 551125b

Browse files
Send to STDOUT the output from apidoc #12
1 parent 0983d1a commit 551125b

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

flask_apidoc/commands.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,4 +40,8 @@ def run(self):
4040
cmd.append('--template')
4141
cmd.append(self.template_path)
4242

43-
return subprocess.call(cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE, stdin=subprocess.PIPE)
43+
p = subprocess.Popen(cmd)
44+
45+
p.communicate()
46+
47+
return p.returncode

0 commit comments

Comments
 (0)