From 39dd4dd56c5910cdf19d2e8eb29c5d61ec18ba77 Mon Sep 17 00:00:00 2001 From: Bart van den Eijnden Date: Sat, 4 Apr 2015 10:04:35 +0200 Subject: [PATCH] Make sure we copy the example css if it exists --- build.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/build.py b/build.py index 7c5828f0cc..82d52b2283 100755 --- a/build.py +++ b/build.py @@ -676,6 +676,9 @@ def host_examples(t): t.cp(EXAMPLES, examples_dir) for example in [path.replace('.html', '.js') for path in EXAMPLES]: split_example_file(example, examples_dir % vars(variables)) + for example in [path.replace('.html', '.css') for path in EXAMPLES]: + if os.path.isfile(example): + t.cp(example, examples_dir) t.cp_r('examples/data', examples_dir + '/data') t.cp('bin/loader_hosted_examples.js', examples_dir + '/loader.js') t.cp('build/ol.js', 'build/ol-debug.js', build_dir)