Skip to content

Commit

Permalink
search ngspice using homebrew path on macos.
Browse files Browse the repository at this point in the history
  • Loading branch information
dsm committed Dec 7, 2024
1 parent eb3aad2 commit 5913133
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions qucs/qucs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,12 @@ QucsApp::QucsApp()
ngspice_exe_name+="_con";
#endif
/* search own path */
#ifdef Q_OS_MACOS
QString ngspice_exe1 = QStandardPaths::findExecutable(ngspice_exe_name,{"/opt/homebrew/bin"});
#else
QString ngspice_exe1 = QStandardPaths::findExecutable(ngspice_exe_name,{QucsBinDir.absolutePath()});
#endif

/* search system path */
QString ngspice_exe2 = QStandardPaths::findExecutable(ngspice_exe_name);

Expand Down

0 comments on commit 5913133

Please sign in to comment.