##// 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 294 self.log.fatal("Profile %r not found."%self.profile)
295 295 self.exit(1)
296 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 298 else:
299 299 location = self.config.ProfileDir.location
300 300 # location is fully specified
@@ -309,7 +309,7 b' class BaseIPythonApplication(Application):'
309 309 self.log.fatal("Could not create profile directory: %r"%location)
310 310 self.exit(1)
311 311 else:
312 self.log.info("Creating new profile dir: %r"%location)
312 self.log.debug("Creating new profile dir: %r"%location)
313 313 else:
314 314 self.log.fatal("Profile directory %r not found."%location)
315 315 self.exit(1)
@@ -190,7 +190,7 b' class TemplateExporter(Exporter):'
190 190 except Exception as e:
191 191 self.log.warn("Unexpected exception loading template: %s", try_name, exc_info=True)
192 192 else:
193 self.log.info("Loaded template %s", try_name)
193 self.log.debug("Loaded template %s", try_name)
194 194 break
195 195
196 196 def from_notebook_node(self, nb, resources=None, **kw):
@@ -310,7 +310,6 b' class NbConvertApp(BaseIPythonApplication):'
310 310 resources['profile_dir'] = self.profile_dir.location
311 311 resources['unique_key'] = notebook_name
312 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 314 # Try to export
316 315 try:
@@ -76,7 +76,11 b' class FilesWriter(WriterBase):'
76 76 # Write all of the extracted resources to the destination directory.
77 77 # NOTE: WE WRITE EVERYTHING AS-IF IT'S BINARY. THE EXTRACT FIG
78 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 85 # Determine where to write the file to
82 86 dest = os.path.join(self.build_directory, filename)
General Comments 0
You need to be logged in to leave comments. Login now