Пример #1
0
 def before_import(self, how: ImportHow):
     how.vignette_maker = None
     # Pick vignette-ing config file from the zipped directory
     potential_config = self.path / self.VIGNETTE_CONFIG
     if potential_config.exists():
         vignette_maker_cfg = configparser.ConfigParser()
         vignette_maker_cfg.read(potential_config.as_posix())
         how.vignette_maker = VignetteMaker(vignette_maker_cfg, self.path, self.TEMP_VIGNETTE)
Пример #2
0
 def after_import(how: ImportHow):
     how.vignette_maker = None