INNER CODE UNIT · Python

_condor_val

pegasus-isi/pegasus · packages/pegasus-python/src/Pegasus/cli/main.py:382

    def _condor_val(key: str) -> str:
        result = subprocess.run(
            ["condor_config_val", key],
            capture_output=True,
            text=True,
        )
        return result.stdout.strip() if result.returncode == 0 else ""

    blahpd_location = argv[0] if argv else _condor_val("BLAHPD_LOCATION")
    glite_location = _condor_val("GLITE_LOCATION")

    # Resolve glite files directory
    from Pegasus.cli._java import get_system_properties

    props = get_system_properties()
    share_dir = Path(props.get("pegasus.home.sharedstatedir", ""))
    pegasus_glite_dir = share_dir / "htcondor" / "glite"

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…