Skip to content

Commit f825169

Browse files
Marti BolivarMaureenHelm
authored andcommitted
conf.py: clean up exit if ZEPHYR_BASE is unset
Suggested by Ulf Magnusson. Signed-off-by: Marti Bolivar <[email protected]>
1 parent 869e9cc commit f825169

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

doc/conf.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,7 @@
1616
import os
1717

1818
if "ZEPHYR_BASE" not in os.environ:
19-
sys.stderr.write("$ZEPHYR_BASE environment variable undefined.\n")
20-
exit(1)
19+
sys.exit("$ZEPHYR_BASE environment variable undefined.")
2120
ZEPHYR_BASE = os.environ["ZEPHYR_BASE"]
2221

2322
# Add the 'extensions' directory to sys.path, to enable finding Sphinx

0 commit comments

Comments
 (0)