##// END OF EJS Templates
Merge pull request #8072 from Carreau/chatty...
Min RK -
r20742:166e6eef merge
parent child Browse files
Show More
@@ -294,7 +294,7 b' class BaseIPythonApplication(Application):'
294 self.log.fatal("Profile %r not found."%self.profile)
294 self.log.fatal("Profile %r not found."%self.profile)
295 self.exit(1)
295 self.exit(1)
296 else:
296 else:
297 self.log.info("Using existing profile dir: %r"%p.location)
297 self.log.debug("Using existing profile dir: %r"%p.location)
298 else:
298 else:
299 location = self.config.ProfileDir.location
299 location = self.config.ProfileDir.location
300 # location is fully specified
300 # location is fully specified
@@ -309,7 +309,7 b' class BaseIPythonApplication(Application):'
309 self.log.fatal("Could not create profile directory: %r"%location)
309 self.log.fatal("Could not create profile directory: %r"%location)
310 self.exit(1)
310 self.exit(1)
311 else:
311 else:
312 self.log.info("Creating new profile dir: %r"%location)
312 self.log.debug("Creating new profile dir: %r"%location)
313 else:
313 else:
314 self.log.fatal("Profile directory %r not found."%location)
314 self.log.fatal("Profile directory %r not found."%location)
315 self.exit(1)
315 self.exit(1)
@@ -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.info("Loaded template %s", try_name)
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.get('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