Skip to content
This repository was archived by the owner on Sep 12, 2024. It is now read-only.

Commit f7b6465

Browse files
committed
changed the eoscp final path syntax in utils.py
1 parent 0059363 commit f7b6465

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

utils.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1219,6 +1219,7 @@ def __init__(self, filename, opt='w', trials=5):
12191219
sys.exit(2)
12201220
self.opt = opt
12211221
self.eos_filename = filename.replace('//','/')
1222+
self.eos_filename = 'root://eoscms.cern.ch/'+self.eos_filename
12221223
self.cache_filename = (cache_dir+'/'+filename.replace('/','_')).replace('//','/')
12231224
self.cache = open(self.cache_filename, self.opt)
12241225
self.trials = trials
@@ -3026,7 +3027,8 @@ def save(self):
30263027
#out.close()
30273028

30283029
## write the information out to disk
3029-
os.system('eoscp %s/closedout.json %s/closedout.json.last'%(base_eos_dir, base_eos_dir))
3030+
new_base_eos_dir = 'root://eoscms.cern.ch/'+base_eos_dir
3031+
os.system('eoscp %s/closedout.json %s/closedout.json.last'%(new_base_eos_dir, new_base_eos_dir))
30303032

30313033
## merge the content
30323034
try:

0 commit comments

Comments
 (0)