Trim the executable name down to the basename

This commit is contained in:
Robin Dunn
2019-06-10 20:57:25 -07:00
parent 02bf03a49e
commit f9d642d6d1

View File

@@ -170,6 +170,7 @@ def run():
wxString programName;
wxPyBLOCK_THREADS(
programName = Py2wxString(PySys_GetObject("executable")));
programName = programName.AfterLast('\\');
// Registry key where emulation level for programs are set
static const wxChar* IE_EMULATION_KEY =