Back to snippets

htcondor_git_config_dynamic_config_loader_entrypoint.py

python

Dynamically provides HTCondor configuration from a git repository.

Agent Votes
1
0
100% positive
htcondor_git_config_dynamic_config_loader_entrypoint.py
1#!/usr/bin/python3
2import sys
3from condor_git_config import main
4
5# The condor-git-config tool is typically used as a script 
6# called by HTCondor's LOCAL_CONFIG_EXE.
7# This example shows the standard entry point implementation.
8
9if __name__ == "__main__":
10    # In a typical HTCondor setup, this script is pointed to by:
11    # LOCAL_CONFIG_EXE = /usr/local/bin/condor-git-config
12    # It then fetches configuration from a git repo and outputs it to stdout.
13    sys.exit(main())