File: //usr/lib64/python3.9/site-packages/gssapi/__pycache__/_win_config.cpython-39.pyc
a
��_� � @ sh d Z ddlZddlZddlZej�ej�dd�ddd�ZdZ d d
� Z
dd� Zd
d� Zej
dkrde� dS )aN
Using GSSAPI on Windows requires having an installation of Kerberos for Windows
(KfW) available in the user's PATH. This module should be imported before
anything else to check for that installation, add it to the PATH if necessary,
and throw any errors before they manifest as cryptic missing DLL errors later
down the import tree.
� NZProgramFileszC:\Program FilesZMITZKerberos�binz!https://web.mit.edu/KERBEROS/distc C s, zt �d� W n ty" Y dS 0 dS dS )z3Return if the main GSSAPI DLL for KfW can be loadedzgssapi64.dllFTN)�ctypesZWinDLL�OSError� r r �8/usr/lib64/python3.9/site-packages/gssapi/_win_config.py�
kfw_available s
r c C s t dttf ��dS )z@Raise an OSError detailing that KfW is missing and how to get itz�Could not find KfW installation. Please download and install the 64bit Kerberos for Windows MSI from %s and ensure the 'bin' folder (%s) is in your PATH.N)r �KFW_DL�KFW_BINr r r r �error_not_found s
��r
c C s� t � r
dS tj�t�rZzt�t� W n* tyN tjd tjt 7 <