tig / winprint

winprint 2.0 - Advanced source code and text file printing. The perfect tool for printing source code, web pages, reports generated by legacy systems, documentation, or any text or HTML file. It works interactively or from the command line making it great for single users or whole enterprises. Works great with Powershell.
https://tig.github.io/winprint/
MIT License
73 stars 5 forks source link

Make installation of Pygments (and Python) more robust #35

Open tig opened 2 years ago

tig commented 2 years ago

Describe the bug winprint's pretty-print functionality (within the AnsiCte content type engine) utilizes Pygments (https://pygments.org/). The pygmentize.exe executable must be available and Python 3.7, 3.8, or 3.9 must be installed (other versions may work too).

The winprint installer currently installs pygmentize.exe in \Program Files\Kindel Systems\winprint which means pygments doesn't need installation, but if Python isn't installed or configured right pretty-print won't work.

There are lots of options for fixing:

tig commented 2 years ago

GUI now (PR #36) has a check with message box.

Still need to implement in console version and installer.