from pathlib import Path from PyTeX.build.build import PyTeXBuilder from PyTeX.build.build.pytex_config import PyTeXConfig from PyTeX.format.formatting_config import FormattingConfig conf_path = Path('.pytexrc') builder = PyTeXBuilder(conf_path) builder.build_tex_sources() v = builder.version_info pass