INNER CODE UNIT · Python
_do_configure_glite
pegasus-isi/pegasus · packages/pegasus-python/src/Pegasus/cli/main.py:359
def _do_configure_glite(argv: list) -> None:
"""Implement pegasus-configure-glite: configure Condor BLAHPD integration."""
import shutil
import subprocess
if len(argv) > 1 or (argv and argv[0] in ("-h", "--help")):
click.echo("Usage: pegasus configure-glite [-h] [GLITE_LOCATION]")
sys.exit(0 if argv and argv[0] in ("-h", "--help") else 1)
import platform
if platform.system() == "Darwin":
click.echo(
"WARNING: Condor doesn't normally ship with glite on OSX, so this is unlikely to work"
)
if not shutil.which("condor_config_val"):
click.echo(