Show More
@@ -66,7 +66,7 b' class FilesWriter(WriterBase):' | |||||
66 | raise AttributeError('notebook_name') |
|
66 | raise AttributeError('notebook_name') | |
67 |
|
67 | |||
68 | # Pull the extension and subdir from the resources dict. |
|
68 | # Pull the extension and subdir from the resources dict. | |
69 |
output_extension = resources |
|
69 | output_extension = resources.get('output_extension', None) | |
70 |
|
70 | |||
71 | # Write all of the extracted resources to the destination directory. |
|
71 | # Write all of the extracted resources to the destination directory. | |
72 | # NOTE: WE WRITE EVERYTHING AS-IF IT'S BINARY. THE EXTRACT FIG |
|
72 | # NOTE: WE WRITE EVERYTHING AS-IF IT'S BINARY. THE EXTRACT FIG | |
@@ -101,7 +101,10 b' class FilesWriter(WriterBase):' | |||||
101 | link_or_copy(matching_filename, dest) |
|
101 | link_or_copy(matching_filename, dest) | |
102 |
|
102 | |||
103 | # Determine where to write conversion results. |
|
103 | # Determine where to write conversion results. | |
104 | dest = notebook_name + '.' + output_extension |
|
104 | if output_extension is not None: | |
|
105 | dest = notebook_name + '.' + output_extension | |||
|
106 | else: | |||
|
107 | dest = notebook_name | |||
105 | if self.build_directory: |
|
108 | if self.build_directory: | |
106 | dest = os.path.join(self.build_directory, dest) |
|
109 | dest = os.path.join(self.build_directory, dest) | |
107 |
|
110 |
General Comments 0
You need to be logged in to leave comments.
Login now