##// END OF EJS Templates
tweak support-file output...
MinRK -
Show More
@@ -288,7 +288,7 b' class NbConvertApp(BaseIPythonApplication):'
288 resources = {}
288 resources = {}
289 resources['unique_key'] = notebook_name
289 resources['unique_key'] = notebook_name
290 resources['output_files_dir'] = '%s_files' % notebook_name
290 resources['output_files_dir'] = '%s_files' % notebook_name
291 self.log.debug("Writing extra files to %s", resources['output_files_dir'])
291 self.log.info("Support files will be in %s", os.path.join(resources['output_files_dir'], ''))
292
292
293 # Try to export
293 # Try to export
294 try:
294 try:
@@ -75,7 +75,7 b' class FilesWriter(WriterBase):'
75 self._makedir(path)
75 self._makedir(path)
76
76
77 # Write file
77 # Write file
78 self.log.info("Writing support file %s", dest)
78 self.log.debug("Writing %i bytes to support file %s", len(data), dest)
79 with io.open(dest, 'wb') as f:
79 with io.open(dest, 'wb') as f:
80 f.write(data)
80 f.write(data)
81
81
@@ -102,7 +102,7 b' class FilesWriter(WriterBase):'
102 dest = os.path.join(self.build_directory, dest)
102 dest = os.path.join(self.build_directory, dest)
103
103
104 # Write conversion results.
104 # Write conversion results.
105 self.log.info("Writing %s", dest)
105 self.log.info("Writing %i bytes to support file %s", len(output), dest)
106 with io.open(dest, 'w') as f:
106 with io.open(dest, 'w') as f:
107 f.write(output)
107 f.write(output)
108 return dest No newline at end of file
108 return dest
General Comments 0
You need to be logged in to leave comments. Login now