Skip to content

Commit 04b7dc0

Browse files
committed
- Use --prefix as the guess of the omc executable if OPENMODELICAHOME is not given (not all platforms install omc on the PATH)
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@8026 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
1 parent 9cc2de7 commit 04b7dc0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

OMNotebook/OMNotebookQT4/omcinteractiveenvironment.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@
4343

4444
//IAEX Headers
4545
#include "omcinteractiveenvironment.h"
46+
#include "../../Compiler/runtime/config.h"
4647

4748
using namespace std;
4849

@@ -216,7 +217,7 @@ namespace IAEX
216217
#ifdef WIN32
217218
omc = QString( omhome ) + "/bin/omc.exe";
218219
#else /* unix */
219-
omc = (omhome ? QString(omhome)+"/bin/omc" : "omc");
220+
omc = (omhome ? QString(omhome)+"/bin/omc" : QString(CONFIG_DEFAULT_OPENMODELICAHOME)+"/bin/omc");
220221
#endif
221222

222223
QStringList parameters;

0 commit comments

Comments
 (0)