Diff of /src/hugin1/hugin/huginApp.cpp [a99915] .. [636261]  Maximize  Restore

Switch to unified view

a/src/hugin1/hugin/huginApp.cpp b/src/hugin1/hugin/huginApp.cpp
...
...
28
28
29
#include "panoinc_WX.h"
29
#include "panoinc_WX.h"
30
30
31
#ifdef __WXMAC__
31
#ifdef __WXMAC__
32
#include <wx/sysopt.h>
32
#include <wx/sysopt.h>
33
#include <wx/dir.h>
33
#endif
34
#endif
34
35
35
#include "panoinc.h"
36
#include "panoinc.h"
36
37
37
38
...
...
194
        }
195
        }
195
        m_xrcPrefix = thePath + wxT("/");
196
        m_xrcPrefix = thePath + wxT("/");
196
        m_DataDir = thePath + wxT("/");
197
        m_DataDir = thePath + wxT("/");
197
    }
198
    }
198
199
200
#ifdef HUGIN_HSI
201
    // Set PYTHONHOME for the hsi module
202
    {
203
        wxString pythonHome = MacGetPathToBundledFrameworksDirectory() + wxT("/Python27.framework/Versions/Current");
204
        if(! wxDir::Exists(pythonHome)){
205
            wxMessageBox(wxString::Format(_("Directory '%s' does not exists"), pythonHome.c_str()));
206
        } else {
207
            wxUnsetEnv(wxT("PYTHONPATH"));
208
            if(! wxSetEnv(wxT("PYTHONHOME"), pythonHome)){
209
                wxMessageBox(_("Could not set environment variable PYTHONHOME"));
210
            } else {
211
                DEBUG_TRACE("PYTHONHOME set to " << pythonHome);
212
            }
213
        }
214
    }
215
#endif
199
    {
216
    {
200
        wxString thePath = MacGetPathToBundledResourceFile(CFSTR("locale"));
217
        wxString thePath = MacGetPathToBundledResourceFile(CFSTR("locale"));
201
        if(thePath != wxT(""))
218
        if(thePath != wxT(""))
202
            locale.AddCatalogLookupPathPrefix(thePath);
219
            locale.AddCatalogLookupPathPrefix(thePath);
203
        else {
220
        else {

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks