From a67db21a064f7fb468b5f4429f852a64ff1ecec2 Mon Sep 17 00:00:00 2001 From: aldbr Date: Fri, 12 Apr 2024 16:02:05 +0200 Subject: [PATCH] fix: support file:/... as a location for the pilot files --- src/DIRAC/WorkloadManagementSystem/Utilities/PilotWrapper.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/DIRAC/WorkloadManagementSystem/Utilities/PilotWrapper.py b/src/DIRAC/WorkloadManagementSystem/Utilities/PilotWrapper.py index 8156c108e4b..92199e6fc66 100644 --- a/src/DIRAC/WorkloadManagementSystem/Utilities/PilotWrapper.py +++ b/src/DIRAC/WorkloadManagementSystem/Utilities/PilotWrapper.py @@ -197,7 +197,7 @@ def pilotWrapperScript( random.shuffle(location) # we try from the available locations -locs = [os.path.join('https://', loc) for loc in location] +locs = [os.path.join('https://', loc) if not loc.startswith(('file:', 'https:')) else loc for loc in location] locations = locs + [os.path.join(loc, 'pilot') for loc in locs] # adding also the cvmfs locations locations += %(CVMFS_locs)s