diff options
author | Kali Kaneko <kali@leap.se> | 2015-01-23 14:54:08 -0400 |
---|---|---|
committer | Kali Kaneko <kali@leap.se> | 2015-02-11 14:03:18 -0400 |
commit | 661ee9eb1ce29056f219a2a95688840cebcf889a (patch) | |
tree | 128b35c2855a195f516917e0af001dd0c2888c2c /common/setup.py | |
parent | c654d5e777c0d1db75b5f3586bd20ce2ec4edadc (diff) |
Bail out ddocs installation if the path doesn't exist. Fix: #6671
Diffstat (limited to 'common/setup.py')
-rw-r--r-- | common/setup.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/common/setup.py b/common/setup.py index 92f4827d..b0ab8352 100644 --- a/common/setup.py +++ b/common/setup.py @@ -155,6 +155,11 @@ def build_ddocs_py(basedir=None, with_src=True): dest_prefix = join(basedir, *dest_common_path) ddocs_prefix = join(prefix, 'ddocs') + + if not isdir(ddocs_prefix): + print "No ddocs/ folder, bailing out..." + return + ddocs = {} # design docs are represented by subdirectories of `ddocs_prefix` |