4 netrcFileName =
'.netrc'
5 defAuthPathEnvVar =
'HOME'
6 authPathEnvVar =
'COND_AUTH_PATH'
10 authFile = netrcFileName
11 if not authPath
is None:
12 authFile = os.path.join( authPath, authFile )
13 creds = netrc.netrc( authFile ).authenticators(service)
18 if authPathEnvVar
in os.environ:
19 authPath = os.environ[authPathEnvVar]
21 if defAuthPathEnvVar
in os.environ:
22 authPath = os.environ[defAuthPathEnvVar]