Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fail loudly and immediately if we can't gen docs #569

Merged
merged 2 commits into from
Dec 20, 2013
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions doc/source/bootstrapdocs.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
import json
import os
import subprocess
import sys

RST_GENERATION_SCRIPT = 'htmlgen'
script_path = os.path.join(os.path.dirname(__file__),
RST_GENERATION_SCRIPT)
os.environ['PATH'] += ':.'
#status = os.spawnlpe(os.P_WAIT, script_path, os.environ)
subprocess.call("python "+script_path, shell=True, env=os.environ)
rc = subprocess.call("python "+ script_path, shell=True, env=os.environ)
if rc != 0:
sys.stderr.write("Failed to generate documetation!\n")
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

uhg typo, I'll fix.

sys.exit(2)