2018-02-22 07:49:38 -06:00
|
|
|
import importlib.util
|
|
|
|
import sys
|
|
|
|
|
|
|
|
try:
|
2018-04-03 02:02:19 -05:00
|
|
|
spec = importlib.util.spec_from_file_location('ldap_config', '/etc/netbox/config/ldap_config.py')
|
2018-02-22 07:49:38 -06:00
|
|
|
module = importlib.util.module_from_spec(spec)
|
|
|
|
spec.loader.exec_module(module)
|
|
|
|
sys.modules['netbox.ldap_config'] = module
|
|
|
|
except:
|
|
|
|
raise ImportError('')
|