Ticket #36236: patch-src_main.cpp.diff

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

    old new  
    4646
    4747bool MyApp::OnInit()
    4848{
     49  {
     50    wxString oldpath;
     51    wxGetEnv(wxT("PATH"), &oldpath);
     52    if (oldpath.Find(wxT("@@PREFIX@@/bin")) == -1)
     53    {
     54      wxString newpath = oldpath.Prepend(wxT("@@PREFIX@@/bin:"));
     55      wxSetEnv(wxT("PATH"), newpath);
     56    }
     57  }
     58
    4959  int lang = wxLANGUAGE_UNKNOWN;
    5060
    5161#if defined __WXMSW__