Ticket #53732: patch-src_main.cpp.diff

File patch-src_main.cpp.diff, 484 bytes (added by KubaO (Kuba Ober), 8 years ago)
  • src/main.cpp

    old new  
    129129
    130130bool MyApp::OnInit()
    131131{
     132  {
     133    wxString oldpath;
     134    wxGetEnv(wxT("PATH"), &oldpath);
     135    if (oldpath.Find(wxT("@@PREFIX@@/bin")) == -1)
     136    {
     137      wxString newpath = oldpath.Prepend(wxT("@@PREFIX@@/bin:"));
     138      wxSetEnv(wxT("PATH"), newpath);
     139    }
     140  }
    132141  m_frame = NULL;
    133142//  atexit(Cleanup_Static);
    134143  int lang = wxLANGUAGE_UNKNOWN;