From c0b5fac58f45f1cd94056fbca9eb7e20fc39714c Mon Sep 17 00:00:00 2001 From: aldbr Date: Tue, 16 Apr 2024 10:18:13 +0200 Subject: [PATCH] sweep: #7565 fix: support `file:/path/to/pilot_files` 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 c707685f074..629b39192e2 100644 --- a/src/DIRAC/WorkloadManagementSystem/Utilities/PilotWrapper.py +++ b/src/DIRAC/WorkloadManagementSystem/Utilities/PilotWrapper.py @@ -241,7 +241,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