Skip to content

Commit

Permalink
- Use --prefix as the guess of the omc executable if OPENMODELICAHOME…
Browse files Browse the repository at this point in the history
… 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
  • Loading branch information
sjoelund committed Feb 26, 2011
1 parent d2e77eb commit 13a1bf4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion OMShell/omcinteractiveenvironment.cpp
Expand Up @@ -38,6 +38,7 @@
#include <QtGui/QMessageBox>

#include "omcinteractiveenvironment.h"
#include "../Compiler/runtime/config.h"

using namespace std;

Expand Down Expand Up @@ -121,7 +122,7 @@ namespace IAEX
#ifdef WIN32
omc = QString( omhome ) + "/bin/omc.exe";
#else /* unix */
omc = (omhome ? QString(omhome)+"/bin/omc" : "omc");
omc = (omhome ? QString(omhome)+"/bin/omc" : QString(CONFIG_DEFAULT_OPENMODELICAHOME) + "/bin/omc");
#endif

QStringList parameters;
Expand Down

0 comments on commit 13a1bf4

Please sign in to comment.