(self, argv=None)
| 477 | |
| 478 | @catch_config_error |
| 479 | def initialize(self, argv=None): |
| 480 | # don't hook up crash handler before parsing command-line |
| 481 | self.parse_command_line(argv) |
| 482 | self.init_crash_handler() |
| 483 | if self.subapp is not None: |
| 484 | # stop here if subapp is taking over |
| 485 | return |
| 486 | # save a copy of CLI config to re-load after config files |
| 487 | # so that it has highest priority |
| 488 | cl_config = deepcopy(self.config) |
| 489 | self.init_profile_dir() |
| 490 | self.init_config_files() |
| 491 | self.load_config_file() |
| 492 | # enforce cl-opts override configfile opts: |
| 493 | self.update_config(cl_config) |
nothing calls this directly
no test coverage detected