Show More
@@ -152,7 +152,17 b' class TestsBase(object):' | |||||
152 |
|
152 | |||
153 |
|
153 | |||
154 | def _get_files_path(self): |
|
154 | def _get_files_path(self): | |
155 | return os.path.join(IPython.__path__[0], 'nbconvert', 'tests', 'files') |
|
155 | ||
|
156 | #Get the relative path to this module in the IPython directory. | |||
|
157 | names = self.__module__.split('.')[1:-1] | |||
|
158 | names.append('files') | |||
|
159 | ||||
|
160 | #Build a path using the IPython directory and the relative path we just | |||
|
161 | #found. | |||
|
162 | path = IPython.__path__[0] | |||
|
163 | for name in names: | |||
|
164 | path = os.path.join(path, name) | |||
|
165 | return path | |||
156 |
|
166 | |||
157 |
|
167 | |||
158 | def call(self, parameters): |
|
168 | def call(self, parameters): |
General Comments 0
You need to be logged in to leave comments.
Login now