Avoid hard-coding the xmlsec1 path
This commit is contained in:
parent
ef32df0300
commit
07f24da7ab
1 changed files with 3 additions and 2 deletions
|
|
@ -1,5 +1,6 @@
|
||||||
from decimal import Decimal
|
from decimal import Decimal
|
||||||
import os
|
import os
|
||||||
|
import shutil
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
import django
|
import django
|
||||||
|
|
@ -416,8 +417,8 @@ SASS_PROCESSOR_INCLUDE_DIRS = [
|
||||||
os.path.join(PROJECT_ROOT, 'static/src/scss'),
|
os.path.join(PROJECT_ROOT, 'static/src/scss'),
|
||||||
]
|
]
|
||||||
|
|
||||||
xmlsec_binary = '/usr/bin/xmlsec1'
|
xmlsec_binary = shutil.which('xmlsec1')
|
||||||
if not os.path.isfile(xmlsec_binary):
|
if not xmlsec_binary:
|
||||||
sys.exit('ERROR: xmlsec1 binary missing, EXITING')
|
sys.exit('ERROR: xmlsec1 binary missing, EXITING')
|
||||||
|
|
||||||
SAML_ATTRIBUTE_MAPPING = {
|
SAML_ATTRIBUTE_MAPPING = {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue