Skip to content

Commit

Permalink
Allow to load config from env. (#2075)
Browse files Browse the repository at this point in the history
  • Loading branch information
Carreau authored Dec 3, 2023
1 parent f370e37 commit 4f6ab65
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions nbconvert/nbconvertapp.py
Original file line number Diff line number Diff line change
Expand Up @@ -357,6 +357,8 @@ def initialize(self, argv=None):

self.init_syspath()
super().initialize(argv)
if hasattr(self, "load_config_environ"):
self.load_config_environ()
self.init_notebooks()
self.init_writer()
self.init_postprocessor()
Expand Down Expand Up @@ -655,6 +657,8 @@ def initialize(self, argv=None):
self.config.QtPDFExporter.paginate = False

super().initialize(argv)
if hasattr(self, "load_config_environ"):
self.load_config_environ()

@default("export_format")
def _default_export_format(self):
Expand Down

0 comments on commit 4f6ab65

Please sign in to comment.