Function pygmentize::set_bin_path

source ·
pub fn set_bin_path(pygmentize: impl Into<Cow<'static, str>>)
Expand description

Overwrite the path to the pygmentize binary. The default path is "pygmentize".

If pygmentize is installed in a virtual environment, within your crate directory, i.e. Cargo.lock and env/ being within the same directory. Then assuming that the current directory is the same. Then the path can be overridden by doing:

pygmentize::set_bin_path("./env/Scripts/pygmentize");