We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a5af694 commit 16c31c4Copy full SHA for 16c31c4
foliant/preprocessors/showcommits.py
@@ -360,9 +360,13 @@ def process_file(self, markdown_file_path):
360
with open(markdown_file_path, 'w', encoding='utf8') as markdown_file:
361
markdown_file.write(processed_markdown_content)
362
363
- def process_all_files(self, list_of_files):
+ def process_all_files(self, list_of_files: list):
364
threads = []
365
for markdown_file_path in list_of_files:
366
+ if isinstance(markdown_file_path, (str, Path)):
367
+ markdown_file_path = Path(markdown_file_path)
368
+ if markdown_file_path.is_absolute():
369
+ markdown_file_path = markdown_file_path.relative_to(self.working_dir)
370
process_file_thread = threading.Thread(target=self.process_file,
371
args=[markdown_file_path])
372
process_file_thread.start()
0 commit comments