Skip to content

Commit

Permalink
fix: added possibility to specify a list of CVMFS locations via comma…
Browse files Browse the repository at this point in the history
…nd line
  • Loading branch information
fstagni committed Dec 8, 2023
1 parent 40945db commit 4a7d863
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Pilot/pilotCommands.py
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,7 @@ def _getPreinstalledEnvScript(self):
for CVMFS_location in self.pp.CVMFS_locations:
version = self.pp.releaseVersion or "pro"
arch = platform.system() + "-" + platform.machine()
preinstalledEnvScript = os.path.join(CVMFS_location, self.releaseProject.lower() + "dirac", version, arch, "diracosrc")
preinstalledEnvScript = os.path.join(CVMFS_location, self.pp.releaseProject.lower() + "dirac", version, arch, "diracosrc")
if os.path.isfile(preinstalledEnvScript):
break

Expand Down
3 changes: 3 additions & 0 deletions Pilot/pilotTools.py
Original file line number Diff line number Diff line change
Expand Up @@ -930,6 +930,7 @@ def __init__(self):
("", "pilotUUID=", "pilot UUID"),
("", "preinstalledEnv=", "preinstalled pilot environment script location"),
("", "preinstalledEnvPrefix=", "preinstalled pilot environment area prefix"),
("", "CVMFS_locations=", "comma-separated list of CVMS locations"),
)

# Possibly get Setup and JSON URL/filename from command line
Expand Down Expand Up @@ -1112,6 +1113,8 @@ def __initCommandLine2(self):
self.preinstalledEnv = v
elif o == "--preinstalledEnvPrefix":
self.preinstalledEnvPrefix = v
elif o == "--CVMFS_locations":
self.CVMFS_locations = v.split(",")

def __loadJSON(self):
"""
Expand Down

0 comments on commit 4a7d863

Please sign in to comment.