Show More
@@ -190,7 +190,7 b' class TemplateExporter(Exporter):' | |||||
190 | except Exception as e: |
|
190 | except Exception as e: | |
191 | self.log.warn("Unexpected exception loading template: %s", try_name, exc_info=True) |
|
191 | self.log.warn("Unexpected exception loading template: %s", try_name, exc_info=True) | |
192 | else: |
|
192 | else: | |
193 |
self.log. |
|
193 | self.log.debug("Loaded template %s", try_name) | |
194 | break |
|
194 | break | |
195 |
|
195 | |||
196 | def from_notebook_node(self, nb, resources=None, **kw): |
|
196 | def from_notebook_node(self, nb, resources=None, **kw): |
@@ -310,7 +310,6 b' class NbConvertApp(BaseIPythonApplication):' | |||||
310 | resources['profile_dir'] = self.profile_dir.location |
|
310 | resources['profile_dir'] = self.profile_dir.location | |
311 | resources['unique_key'] = notebook_name |
|
311 | resources['unique_key'] = notebook_name | |
312 | resources['output_files_dir'] = '%s_files' % notebook_name |
|
312 | resources['output_files_dir'] = '%s_files' % notebook_name | |
313 | self.log.info("Support files will be in %s", os.path.join(resources['output_files_dir'], '')) |
|
|||
314 |
|
313 | |||
315 | # Try to export |
|
314 | # Try to export | |
316 | try: |
|
315 | try: |
@@ -76,7 +76,11 b' class FilesWriter(WriterBase):' | |||||
76 | # Write all of the extracted resources to the destination directory. |
|
76 | # Write all of the extracted resources to the destination directory. | |
77 | # NOTE: WE WRITE EVERYTHING AS-IF IT'S BINARY. THE EXTRACT FIG |
|
77 | # NOTE: WE WRITE EVERYTHING AS-IF IT'S BINARY. THE EXTRACT FIG | |
78 | # PREPROCESSOR SHOULD HANDLE UNIX/WINDOWS LINE ENDINGS... |
|
78 | # PREPROCESSOR SHOULD HANDLE UNIX/WINDOWS LINE ENDINGS... | |
79 | for filename, data in resources.get('outputs', {}).items(): |
|
79 | ||
|
80 | items = resources.get('outputs', {}).items() | |||
|
81 | if items: | |||
|
82 | self.log.info("Support files will be in %s", os.path.join(resources['output_files_dir'], '')) | |||
|
83 | for filename, data in items: | |||
80 |
|
84 | |||
81 | # Determine where to write the file to |
|
85 | # Determine where to write the file to | |
82 | dest = os.path.join(self.build_directory, filename) |
|
86 | dest = os.path.join(self.build_directory, filename) |
General Comments 0
You need to be logged in to leave comments.
Login now