Skip to content
Snippets Groups Projects
Commit 886b1715 authored by Patrick Koppenburg's avatar Patrick Koppenburg :leaves:
Browse files

Merge branch 'dfazzini_fix_eosuser_prefix' into 'master'

Add fix for reading files with eosuser prefix

See merge request !714
parents 668ab640 f8322b51
No related branches found
No related tags found
2 merge requests!1103Draft: Add AnalysisHelpers to DaVinci Stack,!714Add fix for reading files with eosuser prefix
Pipeline #4135128 passed
......@@ -494,7 +494,8 @@ def expand_input_files(options):
"""
expanded_files = []
for file_name in options.input_files:
if "root://eoslhcb.cern.ch//" in file_name:
if any(f"root://{x}.cern.ch//" in file_name
for x in ["eoslhcb", "eosuser"]):
import XRootD.client as c
# Workaround since file with a prefix before 'root://'
# as ('mdf:', 'PFN:') are not expanded correctly with .glob
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment