Browse Source

conf.py: clean up exit if ZEPHYR_BASE is unset

Suggested by Ulf Magnusson.

Signed-off-by: Marti Bolivar <marti@opensourcefoundries.com>
pull/8402/head
Marti Bolivar 7 years ago committed by Maureen Helm
parent
commit
f8251693bb
  1. 3
      doc/conf.py

3
doc/conf.py

@ -16,8 +16,7 @@ import sys @@ -16,8 +16,7 @@ import sys
import os
if "ZEPHYR_BASE" not in os.environ:
sys.stderr.write("$ZEPHYR_BASE environment variable undefined.\n")
exit(1)
sys.exit("$ZEPHYR_BASE environment variable undefined.")
ZEPHYR_BASE = os.environ["ZEPHYR_BASE"]
# Add the 'extensions' directory to sys.path, to enable finding Sphinx

Loading…
Cancel
Save