We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 36c0b50 commit bab77b6Copy full SHA for bab77b6
1 file changed
bin/stashcp
@@ -377,9 +377,10 @@ def get_ips(name):
377
return ipv4s + ipv6s
378
379
def get_best_stashcache():
380
+ prefix = os.environ.get("OSG_LOCATION", "")
381
cache_files = [os.path.join(os.path.dirname(os.path.realpath(__file__)), "caches.json"),
- "/etc/stashcache/caches.json",
382
- "/usr/share/stashcache/caches.json"]
+ os.path.join(prefix, "/etc/stashcache/caches.json"),
383
+ os.path.join(prefix, "/usr/share/stashcache/caches.json")]
384
for cache_file in cache_files:
385
if os.path.isfile(cache_file):
386
with open(cache_file, 'r') as f:
0 commit comments