Ticket #9486 (assigned)
Make 'load current' work for linux and mac also
Reported by: | Anders Markvardsen | Owned by: | Raquel Alvarez Banos |
---|---|---|---|
Priority: | minor | Milestone: | Backlog |
Component: | Muon | Keywords: | |
Cc: | Blocked By: | ||
Blocking: | Tester: |
Description
It was noticed during testing of #9417 that 'load current' in fact have hardcoded paths for Windows, which means this functionality currently only works for Windows.
No Muon user have ever complained about this, hence interested they all appear to be windows users!
However, Jay showed me code in std::string CatalogInfo::transformArchivePath(std::string &path) that demonstrate how to make this work for linux and mac also using the path information in facilities.xml
<filelocation>
<prefix regex="
isis
inst\$
Instruments\$"></prefix> <windows replacement=""></windows> <linux replacement="/archive"></linux> <mac replacement="/archive"></mac></filelocation>
This ticket is to do something similar here for MuonAnalysis