Show More
@@ -9,10 +9,8 b' import glob' | |||
|
9 | 9 | import shutil |
|
10 | 10 | import unittest |
|
11 | 11 | |
|
12 | import IPython | |
|
13 | 12 | from IPython.nbformat import v4, write |
|
14 | 13 | from IPython.utils.tempdir import TemporaryWorkingDirectory |
|
15 | from IPython.utils.path import get_ipython_package_dir | |
|
16 | 14 | from IPython.utils.process import get_output_error_code |
|
17 | 15 | from IPython.testing.tools import get_ipython_cmd |
|
18 | 16 | |
@@ -121,12 +119,11 b' class TestsBase(unittest.TestCase):' | |||
|
121 | 119 | names = self.__module__.split('.')[1:-1] |
|
122 | 120 | names.append('files') |
|
123 | 121 | |
|
124 |
#Build a path using the |
|
|
122 | #Build a path using the nbconvert directory and the relative path we just | |
|
125 | 123 | #found. |
|
126 | path = get_ipython_package_dir() | |
|
127 | for name in names: | |
|
128 |
|
|
|
129 | return path | |
|
124 | import jupyter_nbconvert | |
|
125 | path = os.path.dirname(jupyter_nbconvert.__file__) | |
|
126 | return os.path.join(path, *names) | |
|
130 | 127 | |
|
131 | 128 | |
|
132 | 129 | def call(self, parameters, ignore_return_code=False): |
General Comments 0
You need to be logged in to leave comments.
Login now