Ignore:
Timestamp:
03/09/06 09:57:55 (19 years ago)
Author:
boris
Message:
  • fixed a omc-binary-lookup bug related to when MDT is instructed to use OPENMODELICAHOME to find the binary
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/org.modelica.mdt.omc/src/org/modelica/mdt/omc/OMCProxy.java

    r397 r404  
    226226             * by checking in it's varius subdirectory for the omc binary file
    227227             */
    228             logOMCStatus("Using standard path to omc-binary");
     228            logOMCStatus("Using OPENMODELICAHOME environment variable to find omc-binary");
    229229           
    230230            /*
     
    248248            for (String subdir : subdirs)
    249249            {
    250                 File file = new File(openModelicaHome +
    251                         subdir + File.separator + binaryName);
     250           
     251                String path = omcWorkingDirectory.getAbsolutePath() + File.separator;
     252                path += subdir.equals("") ? binaryName :  subdir + File.separator + binaryName;
     253
     254                File file = new File(path);
    252255
    253256                if (file.exists())
     
    261264            if (omcBinary == null)
    262265            {
    263                 logOMCStatus("Could not fine omc-binary on the standard path");
     266                logOMCStatus("Could not fine omc-binary on the OPENMODELICAHOME path");
    264267                throw new ConnectException("Unable to start the OpenModelica Compiler, binary not found");
    265268            }
Note: See TracChangeset for help on using the changeset viewer.