From 99042242c32edb767de34b4918c5506dda1d37f6 Mon Sep 17 00:00:00 2001 From: Marton Ady <marton.ady@cern.ch> Date: Wed, 21 Jul 2021 10:46:20 +0200 Subject: [PATCH] Add M1 homebrew 7za path --- Worker_shared.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Worker_shared.cpp b/Worker_shared.cpp index 079acd64..3e1277d1 100644 --- a/Worker_shared.cpp +++ b/Worker_shared.cpp @@ -560,7 +560,8 @@ FileReader *Worker::ExtractFrom7zAndOpen(const std::string &fileName, const std: sevenZipName = "7za"; //so that Exist() check fails and we get an error message on the next command std::string possibleLocations[] = {"./7za", //use 7za binary shipped with Molflow "/usr/bin/7za", //use p7zip installed system-wide - "/usr/local/bin/7za"}; //use p7zip installed for user + "/usr/local/bin/7za", //use p7zip installed for user + "/opt/homebrew/bin/7za"}; //homebrew on M1 mac for(auto& path : possibleLocations){ if (FileUtils::Exist(path)) { sevenZipName = path; -- GitLab