Skip to content

Commit bb6368a

Browse files
committed
package data may be computed prior to components being fetched
trust that it will be re-run after npm/bower
1 parent b3cab90 commit bb6368a

File tree

1 file changed

+11
-9
lines changed

1 file changed

+11
-9
lines changed

setupbase.py

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -162,16 +162,18 @@ def find_package_data():
162162

163163
trees = []
164164
mj_out = mj('jax', 'output')
165-
for output in os.listdir(mj_out):
166-
if output == 'SVG':
167-
# strip SVG output
168-
continue
169-
path = pjoin(mj_out, output)
170-
static_data.append(pjoin(path, '*.js'))
171-
autoload = pjoin(path, 'autoload')
172-
if os.path.isdir(autoload):
173-
trees.append(autoload)
174165

166+
if os.path.exists(mj_out):
167+
for output in os.listdir(mj_out):
168+
if output == 'SVG':
169+
# strip SVG output
170+
continue
171+
path = pjoin(mj_out, output)
172+
static_data.append(pjoin(path, '*.js'))
173+
autoload = pjoin(path, 'autoload')
174+
if os.path.isdir(autoload):
175+
trees.append(autoload)
176+
175177
for tree in trees + [
176178
mj('localization'), # limit to en?
177179
mj('fonts', 'HTML-CSS', 'STIX-Web', 'woff'),

0 commit comments

Comments
 (0)