@@ -417,43 +417,43 @@ def generate_documents(
417417 gems_asciidoctor : Path = Path ("mscp_gems/bin/asciidoctor" )
418418 gems_asciidoctor_pdf : Path = Path ("mscp_gems/bin/asciidoctor-pdf" )
419419
420- output , error = run_command ("which asciidoctor" )
421- logger .debug (f"which asciidoctor output: { output } , error: { error } " )
420+ # output, error = run_command("which asciidoctor")
421+ # logger.debug(f"which asciidoctor output: {output}, error: {error}")
422422
423- if not output :
424- if not gems_asciidoctor .exists ():
425- logger .error ("Asciidoctor not installed!!" )
426- sys .exit ()
423+ # if not output:
424+ # if not gems_asciidoctor.exists():
425+ # logger.error("Asciidoctor not installed!!")
426+ # sys.exit()
427427
428- output , error = run_command (f"asciidoctor { output_file } " )
428+ output , error = run_command (f"bundle exec asciidoctor { output_file } " )
429429 if error :
430430 logger .error (f"Error converting to ADOC: { error } " )
431431 sys .exit ()
432432
433433 if not show_all_tags :
434- output , error = run_command ("which asciidoctor-pdf" )
435- logger .debug (f"which asciidoctor-pdf output: { output } , error: { error } " )
434+ # output, error = run_command("which asciidoctor-pdf")
435+ # logger.debug(f"which asciidoctor-pdf output: {output}, error: {error}")
436436
437- if not output :
438- if not gems_asciidoctor .exists ():
439- logger .error ("Asciidoctor not installed!!" )
440- sys .exit ()
437+ # if not output:
438+ # if not gems_asciidoctor.exists():
439+ # logger.error("Asciidoctor not installed!!")
440+ # sys.exit()
441441
442- output , error = run_command (f"asciidoctor-pdf { output_file } " )
442+ output , error = run_command (f"bundle exec asciidoctor-pdf { output_file } " )
443443 if error :
444444 logger .error (f"Error converting to ADOC: { error } " )
445445 sys .exit ()
446446
447447 if not show_all_tags :
448- output , error = run_command ("which asciidoctor-pdf" )
449- logger .debug (f"which asciidoctor-pdf output: { output } , error: { error } " )
448+ # output, error = run_command("which asciidoctor-pdf")
449+ # logger.debug(f"which asciidoctor-pdf output: {output}, error: {error}")
450450
451- if not output :
452- if not gems_asciidoctor_pdf .exists ():
453- logger .error ("Asciidoctor not installed!!" )
454- sys .exit ()
451+ # if not output:
452+ # if not gems_asciidoctor_pdf.exists():
453+ # logger.error("Asciidoctor not installed!!")
454+ # sys.exit()
455455
456- output , error = run_command (f"asciidoctor-pdf { output_file } " )
456+ output , error = run_command (f"bundle exec asciidoctor-pdf { output_file } " )
457457 if error :
458458 logger .error (f"Error converting to ADOC: { error } " )
459459 sys .exit ()
0 commit comments