Skip to content
Snippets Groups Projects
Commit 99042242 authored by Marton Ady's avatar Marton Ady
Browse files

Add M1 homebrew 7za path

parent 6d601ac2
No related branches found
No related tags found
No related merge requests found
...@@ -560,7 +560,8 @@ FileReader *Worker::ExtractFrom7zAndOpen(const std::string &fileName, const std: ...@@ -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 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 std::string possibleLocations[] = {"./7za", //use 7za binary shipped with Molflow
"/usr/bin/7za", //use p7zip installed system-wide "/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){ for(auto& path : possibleLocations){
if (FileUtils::Exist(path)) { if (FileUtils::Exist(path)) {
sevenZipName = path; sevenZipName = path;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment