Skip to content
Discussion options

You must be logged in to vote

Pandoc offers the function pandoc.system.with_environment. The function doesn't seem to work reliably on Windows, but it might be good enough for many use-cases.

Usage:

pandoc.system.with_environment(
  { LIBGS = "...." },
  function ()
    os.execute('...')
  end
)

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@adamiturabi
Comment options

Answer selected by adamiturabi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
lua Issues related to the lua codebase, filter chain, etc
2 participants