File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -360,9 +360,13 @@ def process_file(self, markdown_file_path):
360
360
with open (markdown_file_path , 'w' , encoding = 'utf8' ) as markdown_file :
361
361
markdown_file .write (processed_markdown_content )
362
362
363
- def process_all_files (self , list_of_files ):
363
+ def process_all_files (self , list_of_files : list ):
364
364
threads = []
365
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 )
366
370
process_file_thread = threading .Thread (target = self .process_file ,
367
371
args = [markdown_file_path ])
368
372
process_file_thread .start ()
You can’t perform that action at this time.
0 commit comments