Skip to content

Commit 4f6ab65

Browse files
authored
Allow to load config from env. (#2075)
1 parent f370e37 commit 4f6ab65

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

nbconvert/nbconvertapp.py

+4
Original file line numberDiff line numberDiff line change
@@ -357,6 +357,8 @@ def initialize(self, argv=None):
357357

358358
self.init_syspath()
359359
super().initialize(argv)
360+
if hasattr(self, "load_config_environ"):
361+
self.load_config_environ()
360362
self.init_notebooks()
361363
self.init_writer()
362364
self.init_postprocessor()
@@ -655,6 +657,8 @@ def initialize(self, argv=None):
655657
self.config.QtPDFExporter.paginate = False
656658

657659
super().initialize(argv)
660+
if hasattr(self, "load_config_environ"):
661+
self.load_config_environ()
658662

659663
@default("export_format")
660664
def _default_export_format(self):

0 commit comments

Comments
 (0)