Skip to content

Commit

Permalink
Use the prefix for OPENMODELICAHOME
Browse files Browse the repository at this point in the history
  • Loading branch information
sjoelund committed Aug 6, 2015
1 parent dfda18a commit 0777ed5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion OMShell/OMShellGUI/omc_config.h.in
@@ -1 +1 @@
#define CONFIG_DEFAULT_OPENMODELICAHOME "@OPENMODELICAHOME@"
#define CONFIG_DEFAULT_OPENMODELICAHOME "@prefix@"
6 changes: 5 additions & 1 deletion OMShell/OMShellGUI/omcinteractiveenvironment.cpp
Expand Up @@ -130,7 +130,11 @@ namespace IAEX
#ifdef WIN32
omc = QString( omhome ) + "/bin/omc.exe";
#else /* unix */
omc = (omhome ? QString(omhome)+"/bin/omc" : QString(CONFIG_DEFAULT_OPENMODELICAHOME) + "/bin/omc");
omc = (omhome ? QString(omhome)+"/bin/omc" : QString(CONFIG_DEFAULT_OPENMODELICAHOME "/bin/omc"));
QFileInfo checkFile(omc);
if (!checkFile.exists() || !checkFile.isFile()) {
omc = "omc";
}
#endif

QStringList parameters;
Expand Down

0 comments on commit 0777ed5

Please sign in to comment.