mirror of
https://github.com/jupyter/notebook.git
synced 2025-02-17 12:39:54 +08:00
Walk nbconvert templates directory for package data files
This commit is contained in:
parent
1dc80a609e
commit
22f7bd4597
11
setupbase.py
11
setupbase.py
@ -146,6 +146,11 @@ def find_package_data():
|
||||
|
||||
os.chdir(os.path.join('tests',))
|
||||
js_tests = glob('casperjs/*.*') + glob('casperjs/*/*')
|
||||
|
||||
os.chdir(os.path.join(cwd, 'IPython', 'nbconvert'))
|
||||
nbconvert_templates = [os.path.join(dirpath, '*')
|
||||
for dirpath, _, _ in os.walk('templates')]
|
||||
|
||||
os.chdir(cwd)
|
||||
|
||||
package_data = {
|
||||
@ -157,10 +162,8 @@ def find_package_data():
|
||||
'IPython.html' : ['templates/*'] + static_data,
|
||||
'IPython.html.tests' : js_tests,
|
||||
'IPython.qt.console' : ['resources/icon/*.svg'],
|
||||
'IPython.nbconvert' : ['templates/*.tpl', 'templates/latex/*.tplx',
|
||||
'templates/latex/skeleton/*.tplx', 'templates/skeleton/*',
|
||||
'templates/reveal_internals/*.tpl', 'tests/files/*.*',
|
||||
'exporters/tests/files/*.*'],
|
||||
'IPython.nbconvert' : nbconvert_templates +
|
||||
['tests/files/*.*', 'exporters/tests/files/*.*'],
|
||||
'IPython.nbformat' : ['tests/*.ipynb']
|
||||
}
|
||||
return package_data
|
||||
|
Loading…
Reference in New Issue
Block a user