cape.sysutils: System utilities for using CAPE¶
This module provides various “system” utilities such as providing a universal Python method to open a PDF file for viewing.
- cape.sysutils.get_pdf_viewer() str¶
Get the preferred PDF viewer application based on system
- Call:
>>> viewer = get_pdf_viewer()
- Outputs:
- viewer:
str Name of application to open PDF
- viewer:
- Versions:
2026-08-07
@ddalle: v1.0
- cape.sysutils.open_pdf(fname: str, remote: str | None = None, wait: bool = False, pull: bool = False, local: bool | None = None) Popen¶
Open a PDF file if found
- Call:
>>> open_pdf(fname, wait=False)
- Inputs:
- Output:
- proc:
subprocess.Popen Subprocess handle
- proc:
- Versions:
2026-08-07
@ddalle: v1.0