correctly adds searchpath as list
This commit is contained in:
parent
441fe44569
commit
0bd6f3a5e8
1 changed files with 2 additions and 1 deletions
|
@ -51,7 +51,8 @@ class LookupModule(LookupBase):
|
|||
|
||||
searchpath = [self._loader._basedir, os.path.dirname(lookupfile)]
|
||||
if 'role_path' in variables:
|
||||
searchpath.insert(1, C.DEFAULT_ROLES_PATH)
|
||||
if C.DEFAULT_ROLES_PATH:
|
||||
searchpath[:0] = C.DEFAULT_ROLES_PATH
|
||||
searchpath.insert(1, variables['role_path'])
|
||||
|
||||
self._templar.environment.loader.searchpath = searchpath
|
||||
|
|
Loading…
Reference in a new issue