Browse Source

Make hooks module import optional

There is no hooks module available when running the
extract_swift_flags.py locally, so making this import optional.

Change-Id: I65ebacd1e3e4cf66ece0a9fcbbc785d79278e8bb
tags/1.3.0
Christian Schwede 3 years ago
parent
commit
c93f4853f6
1 changed files with 4 additions and 1 deletions
  1. +4
    -1
      autogenerate_config_docs/autohelp.py

+ 4
- 1
autogenerate_config_docs/autohelp.py View File

@@ -36,7 +36,10 @@ except Exception:
pass

sys.path.insert(0, '.')
from hooks import HOOKS # noqa
try:
from hooks import HOOKS # noqa
except ImportError:
pass


EXTENSIONS = ['oslo.cache',

Loading…
Cancel
Save