diff options
Diffstat (limited to 'documentation/sphinx/yocto-vars.py')
-rw-r--r-- | documentation/sphinx/yocto-vars.py | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/documentation/sphinx/yocto-vars.py b/documentation/sphinx/yocto-vars.py index 5689472991..8083d7da19 100644 --- a/documentation/sphinx/yocto-vars.py +++ b/documentation/sphinx/yocto-vars.py | |||
@@ -1,10 +1,19 @@ | |||
1 | #!/usr/bin/env python | 1 | #!/usr/bin/env python |
2 | import re | 2 | import re |
3 | import yaml | 3 | import sys |
4 | 4 | ||
5 | import sphinx | 5 | import sphinx |
6 | from sphinx.application import Sphinx | 6 | from sphinx.application import Sphinx |
7 | 7 | ||
8 | # This extension uses pyyaml, report an explicit | ||
9 | # error message if it's not installed | ||
10 | try: | ||
11 | import yaml | ||
12 | except ImportError: | ||
13 | sys.stderr.write("The Yocto Project Sphinx documentation requires PyYAML.\ | ||
14 | \nPlease make sure to install pyyaml python package.\n") | ||
15 | sys.exit(1) | ||
16 | |||
8 | __version__ = '1.0' | 17 | __version__ = '1.0' |
9 | 18 | ||
10 | # Variables substitutions. Uses {VAR} subst using variables defined in poky.yaml | 19 | # Variables substitutions. Uses {VAR} subst using variables defined in poky.yaml |