#!/usr/bin/env python
import sys
import os

package_base = r"/usr/share/dblatex"


cat = os.environ.get("SGML_CATALOG_FILES")
if cat:
    cat += ":/etc/xml/docbook-xml"
else:
    cat = "/etc/xml/docbook-xml"
os.environ["SGML_CATALOG_FILES"] = cat


from dbtexmf.dblatex import dblatex
dblatex.main(base=package_base)
