Avoid hard-coding the xmlsec1 path

This commit is contained in:
Ben Sturmfels 2026-02-20 15:45:05 +11:00
parent ef32df0300
commit 07f24da7ab
Signed by: bsturmfels
GPG key ID: 023C05E2C9C068F0

View file

@ -1,5 +1,6 @@
from decimal import Decimal
import os
import shutil
import sys
import django
@ -416,8 +417,8 @@ SASS_PROCESSOR_INCLUDE_DIRS = [
os.path.join(PROJECT_ROOT, 'static/src/scss'),
]
xmlsec_binary = '/usr/bin/xmlsec1'
if not os.path.isfile(xmlsec_binary):
xmlsec_binary = shutil.which('xmlsec1')
if not xmlsec_binary:
sys.exit('ERROR: xmlsec1 binary missing, EXITING')
SAML_ATTRIBUTE_MAPPING = {