Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
- catch omc_Main_setWindowsPaths exception.

git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@25813 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
adeas31 committed Apr 29, 2015
1 parent 674a897 commit 17812f7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions OMEdit/OMEditGUI/OMC/OMCProxy.cpp
Expand Up @@ -306,7 +306,9 @@ bool OMCProxy::initializeOMC()
sendCommand("getInstallationDirectoryPath()");
Helper::OpenModelicaHome = StringHandler::removeFirstLastQuotes(getResult());
#ifdef WIN32
MMC_TRY_TOP_INTERNAL()
omc_Main_setWindowsPaths(threadData, mmc_mk_scon(Helper::OpenModelicaHome.toStdString().c_str()));
MMC_CATCH_TOP()
#endif
/* set the tmp directory as the working directory */
changeDirectory(tmpPath);
Expand Down

0 comments on commit 17812f7

Please sign in to comment.