def run(sourcePath, suffix=''): ui = UiTk('yWriter import/export') converter = Yw7Converter() converter.ui = ui kwargs = {'suffix': suffix} converter.run(sourcePath, **kwargs) ui.start()
def run(sourcePath, suffix=None, markdownMode=False, noTitles=False): ui = UiTk('yWriter import/export') converter = MdConverter() converter.ui = ui kwargs = { 'suffix': suffix, 'markdown_mode': markdownMode, 'scene_titles': not noTitles } converter.run(sourcePath, **kwargs) ui.start()