def find_job_template()

in cdsresponder/cds/cds_launcher.py [0:0]


    def find_job_template(self):
        filepath = os.path.join(os.getenv("TEMPLATES_PATH"), "cdsjob.yaml")
        if os.path.exists(filepath):
            return filepath
        filepath = os.path.join(pathlib.Path(__name__).parent.absolute(), "templates","cdsjob.yaml")
        if os.path.exists(filepath):
            return filepath
        filepath = "/etc/cdsresponder/templates/cdsjob.yaml"
        if os.path.exists(filepath):
            return filepath
        raise RuntimeError("No path to cdsjob could be found")