Configuration

PyBloqs has a few elements that can be configured locally:

  • Email sending
  • Public html directory (where Block.publish() will save output)
  • Tmp html directory (where Block.show() will save output)
  • PDF conversion backend
  • Image conversion backend

The defaults are set in pybloqs/config.py . Any entry in the dict “user_config” in config.py can be overwritten with a local file in the user’s home directory at ~/.pybloqs.cfg . The format of .pybloqs.cfg is YAML, so changing the PDF conversion backend to Chrome-headless would be done with the following line:

pdf_converter: chrome_headless