We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ca93b48 commit effb881Copy full SHA for effb881
1 file changed
coffea_casa/coffea_casa.py
@@ -69,6 +69,17 @@ def check_token_path(path, suffix=''):
69
70
return None
71
72
+def x509_user_proxy_path():
73
+ """Return the path to the user's X.509 proxy or raise FileNotFoundError if it doesn't exist on disk
74
+ """
75
+ try:
76
+ path = os.environ['X509_USER_PROXY']
77
+ except KeyError:
78
+ path = f'/tmp/x509up_u{os.geteuid()}'
79
+
80
+ if open(path):
81
+ return path
82
+ return None # we shouldn't get here; failure to open should raise OSError
83
84
def merge_dicts(*dict_args):
85
"""
0 commit comments