X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/621b45743238c6bf9f8d33f2236052da6522ceb6..d4052bcb78b0ba58ec357b47faa15c92465def20:/src/os2/app.cpp diff --git a/src/os2/app.cpp b/src/os2/app.cpp index cf60a54926..52aebcb4b8 100644 --- a/src/os2/app.cpp +++ b/src/os2/app.cpp @@ -33,6 +33,8 @@ #include "wx/dynarray.h" #include "wx/wxchar.h" #include "wx/icon.h" + #include "wx/stdpaths.h" + #include "wx/filename.h" #endif #include "wx/log.h" @@ -219,7 +221,9 @@ bool wxApp::Initialize(int& argc, wxChar **argv) // OS2 has to have an anchorblock // vHabmain = WinInitialize(0); - + wxFileName GetPrefix(argv[0]); + GetPrefix.MakeAbsolute(); + wxStandardPaths::SetInstallPrefix(GetPrefix.GetPath()); if (!vHabmain) { // TODO: at least give some error message here...