We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a29fe24 commit 5aaeb61Copy full SHA for 5aaeb61
1 file changed
irods/__init__.py
@@ -13,8 +13,11 @@ def env_filename_from_keyword_args(kwargs):
13
env_file = os.path.expanduser('~/.irods/irods_environment.json')
14
return env_file
15
16
-def derived_auth_filename(env_file):
17
- return '' if not env_file else os.path.join(os.path.dirname(env_file),'.irodsA')
+def derived_auth_filename(env_filename):
+ if not env_filename:
18
+ return ''
19
+ default_irods_authentication_file = os.path.join(os.path.dirname(env_file),'.irodsA')
20
+ return os.environ.get('IRODS_AUTHENTICATION_FILE', default_irods_authentication_file)
21
22
# This has no effect if basicConfig() was previously called.
23
logging.basicConfig()
0 commit comments