Code Review
/
csit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
CSIT-1500: Add comparison table for SOAK vs NDRPDR
[csit.git]
/
resources
/
tools
/
presentation
/
static_content.py
diff --git
a/resources/tools/presentation/static_content.py
b/resources/tools/presentation/static_content.py
index
fe2d072
..
a02330c
100644
(file)
--- a/
resources/tools/presentation/static_content.py
+++ b/
resources/tools/presentation/static_content.py
@@
-34,8
+34,11
@@
def prepare_static_content(spec):
content.
"""
content.
"""
- src = spec.static["src-path"]
- dst = spec.static["dst-path"]
+ src = spec.static.get("src-path", None)
+ dst = spec.static.get("dst-path", None)
+ if src is None or dst is None:
+ logging.warning("No static content specified, skipping")
+ return
# Copy all the static content to the build directory:
logging.info("Copying the static content ...")
# Copy all the static content to the build directory:
logging.info("Copying the static content ...")