Skip to content

Commit 346a51d

Browse files
Fix plugin detection for subdirectories of /usr/lib
1 parent f479c32 commit 346a51d

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

gssapi/tests/_utils.py

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -122,15 +122,8 @@ def _find_plugin_dirs_src(search_path):
122122
return None
123123

124124

125-
_KRB_PREFIX = None
126-
127-
128125
def _requires_krb_plugin(plugin_type, plugin_name):
129-
global _KRB_PREFIX
130-
if _KRB_PREFIX is None:
131-
_KRB_PREFIX = get_output("krb5-config --prefix")
132-
133-
plugin_path = os.path.join(_KRB_PREFIX, 'lib/krb5/plugins',
126+
plugin_path = os.path.join(_find_plugin_dir(),
134127
plugin_type, '%s.so' % plugin_name)
135128

136129
def make_krb_plugin_test(func):

0 commit comments

Comments
 (0)