##// END OF EJS Templates
Walk nbconvert templates directory for package data files
Thomas Kluyver -
Show More
@@ -146,6 +146,11 b' def find_package_data():'
146 146
147 147 os.chdir(os.path.join('tests',))
148 148 js_tests = glob('casperjs/*.*') + glob('casperjs/*/*')
149
150 os.chdir(os.path.join(cwd, 'IPython', 'nbconvert'))
151 nbconvert_templates = [os.path.join(dirpath, '*')
152 for dirpath, _, _ in os.walk('templates')]
153
149 154 os.chdir(cwd)
150 155
151 156 package_data = {
@@ -157,10 +162,8 b' def find_package_data():'
157 162 'IPython.html' : ['templates/*'] + static_data,
158 163 'IPython.html.tests' : js_tests,
159 164 'IPython.qt.console' : ['resources/icon/*.svg'],
160 'IPython.nbconvert' : ['templates/*.tpl', 'templates/latex/*.tplx',
161 'templates/latex/skeleton/*.tplx', 'templates/skeleton/*',
162 'templates/reveal_internals/*.tpl', 'tests/files/*.*',
163 'exporters/tests/files/*.*'],
165 'IPython.nbconvert' : nbconvert_templates +
166 ['tests/files/*.*', 'exporters/tests/files/*.*'],
164 167 'IPython.nbformat' : ['tests/*.ipynb']
165 168 }
166 169 return package_data
General Comments 0
You need to be logged in to leave comments. Login now