git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32818
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Example return values:
\begin{itemize}
\item Unix: \texttt{\textit{prefix}/share/\textit{appname}}
- \item Windows: \texttt{C:$\backslash$Program Files$\backslash$\textit{appname}}
+ \item Windows: the directory where the executable file is located
\item Mac: \texttt{\textit{appname}.app/Contents/SharedSupport} bundle subdirectory
\end{itemize}
wxString wxStandardPaths::GetDataDir() const
{
- return AppendAppName(DoGetDirectory(CSIDL_PROGRAM_FILES));
+ // under Windows each program is usually installed in its own directory and
+ // so its datafiles are in the same directory as its main executable
+ return wxFileName(wxGetFullModuleName()).GetPath();
}
wxString wxStandardPaths::GetUserDataDir() const