4 netrcFileName =
'.netrc' 7 if not authFile
is None:
8 if os.path.isdir(authFile):
9 authFile = os.path.join( authFile, netrcFileName )
10 creds = netrc.netrc( authFile ).authenticators(service)
15 if authPathEnvVar
in os.environ:
16 authPath = os.environ[authPathEnvVar]
17 authFile = os.path.join(authPath, netrcFileName)
def get_credentials(authPathEnvVar, service, authFile=None)
def get_credentials_from_file(service, authFile=None)