+/* static */
+wxString wxStandardPaths::GetAppDir()
+{
+ wxFileName fn(wxGetFullModuleName());
+
+ // allow running the apps directly from build directory in debug builds
+#ifdef __WXDEBUG__
+ wxString lastdir;
+ if ( fn.GetDirCount() )
+ {
+ lastdir = fn.GetDirs().Last();
+ lastdir.MakeLower();
+ if ( lastdir.Matches(_T("debug*")) || lastdir.Matches(_T("vc*msw*")) )
+ fn.RemoveLastDir();
+ }
+#endif // __WXDEBUG__
+
+ return fn.GetPath();
+}
+
+wxString wxStandardPaths::GetDocumentsDir() const
+{
+ return DoGetDirectory(CSIDL_PERSONAL);
+}
+