Added wxStandardPaths::GetExecutablePath
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43450 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -55,6 +55,7 @@ class TestPanel(wx.Panel):
|
|||||||
'GetInstallPrefix',
|
'GetInstallPrefix',
|
||||||
'GetResourcesDir',
|
'GetResourcesDir',
|
||||||
'GetTempDir',
|
'GetTempDir',
|
||||||
|
'GetExecutablePath',
|
||||||
]:
|
]:
|
||||||
makeitem(x)
|
makeitem(x)
|
||||||
|
|
||||||
|
@@ -75,6 +75,12 @@ public:
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
DocDeclStr(
|
||||||
|
virtual wxString , GetExecutablePath() const,
|
||||||
|
"Return the path (directory+filename) of the running executable or an
|
||||||
|
empty string if it couldn't be determined. The path is returned as an
|
||||||
|
absolute path whenever possible.", "");
|
||||||
|
|
||||||
|
|
||||||
DocDeclStr(
|
DocDeclStr(
|
||||||
virtual wxString , GetConfigDir() const,
|
virtual wxString , GetConfigDir() const,
|
||||||
|
@@ -6026,6 +6026,16 @@ class StandardPaths(object):
|
|||||||
return _misc_.StandardPaths_Get(*args, **kwargs)
|
return _misc_.StandardPaths_Get(*args, **kwargs)
|
||||||
|
|
||||||
Get = staticmethod(Get)
|
Get = staticmethod(Get)
|
||||||
|
def GetExecutablePath(*args, **kwargs):
|
||||||
|
"""
|
||||||
|
GetExecutablePath(self) -> String
|
||||||
|
|
||||||
|
Return the path (directory+filename) of the running executable or an
|
||||||
|
empty string if it couldn't be determined. The path is returned as an
|
||||||
|
absolute path whenever possible.
|
||||||
|
"""
|
||||||
|
return _misc_.StandardPaths_GetExecutablePath(*args, **kwargs)
|
||||||
|
|
||||||
def GetConfigDir(*args, **kwargs):
|
def GetConfigDir(*args, **kwargs):
|
||||||
"""
|
"""
|
||||||
GetConfigDir(self) -> String
|
GetConfigDir(self) -> String
|
||||||
|
@@ -36843,6 +36843,40 @@ fail:
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
SWIGINTERN PyObject *_wrap_StandardPaths_GetExecutablePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
||||||
|
PyObject *resultobj = 0;
|
||||||
|
wxStandardPaths *arg1 = (wxStandardPaths *) 0 ;
|
||||||
|
wxString result;
|
||||||
|
void *argp1 = 0 ;
|
||||||
|
int res1 = 0 ;
|
||||||
|
PyObject *swig_obj[1] ;
|
||||||
|
|
||||||
|
if (!args) SWIG_fail;
|
||||||
|
swig_obj[0] = args;
|
||||||
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxStandardPaths, 0 | 0 );
|
||||||
|
if (!SWIG_IsOK(res1)) {
|
||||||
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StandardPaths_GetExecutablePath" "', expected argument " "1"" of type '" "wxStandardPaths const *""'");
|
||||||
|
}
|
||||||
|
arg1 = reinterpret_cast< wxStandardPaths * >(argp1);
|
||||||
|
{
|
||||||
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
||||||
|
result = ((wxStandardPaths const *)arg1)->GetExecutablePath();
|
||||||
|
wxPyEndAllowThreads(__tstate);
|
||||||
|
if (PyErr_Occurred()) SWIG_fail;
|
||||||
|
}
|
||||||
|
{
|
||||||
|
#if wxUSE_UNICODE
|
||||||
|
resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
|
||||||
|
#else
|
||||||
|
resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
return resultobj;
|
||||||
|
fail:
|
||||||
|
return NULL;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
SWIGINTERN PyObject *_wrap_StandardPaths_GetConfigDir(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
SWIGINTERN PyObject *_wrap_StandardPaths_GetConfigDir(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
||||||
PyObject *resultobj = 0;
|
PyObject *resultobj = 0;
|
||||||
wxStandardPaths *arg1 = (wxStandardPaths *) 0 ;
|
wxStandardPaths *arg1 = (wxStandardPaths *) 0 ;
|
||||||
@@ -40031,6 +40065,7 @@ static PyMethodDef SwigMethods[] = {
|
|||||||
{ (char *)"Display_swigregister", Display_swigregister, METH_VARARGS, NULL},
|
{ (char *)"Display_swigregister", Display_swigregister, METH_VARARGS, NULL},
|
||||||
{ (char *)"Display_swiginit", Display_swiginit, METH_VARARGS, NULL},
|
{ (char *)"Display_swiginit", Display_swiginit, METH_VARARGS, NULL},
|
||||||
{ (char *)"StandardPaths_Get", (PyCFunction)_wrap_StandardPaths_Get, METH_NOARGS, NULL},
|
{ (char *)"StandardPaths_Get", (PyCFunction)_wrap_StandardPaths_Get, METH_NOARGS, NULL},
|
||||||
|
{ (char *)"StandardPaths_GetExecutablePath", (PyCFunction)_wrap_StandardPaths_GetExecutablePath, METH_O, NULL},
|
||||||
{ (char *)"StandardPaths_GetConfigDir", (PyCFunction)_wrap_StandardPaths_GetConfigDir, METH_O, NULL},
|
{ (char *)"StandardPaths_GetConfigDir", (PyCFunction)_wrap_StandardPaths_GetConfigDir, METH_O, NULL},
|
||||||
{ (char *)"StandardPaths_GetUserConfigDir", (PyCFunction)_wrap_StandardPaths_GetUserConfigDir, METH_O, NULL},
|
{ (char *)"StandardPaths_GetUserConfigDir", (PyCFunction)_wrap_StandardPaths_GetUserConfigDir, METH_O, NULL},
|
||||||
{ (char *)"StandardPaths_GetDataDir", (PyCFunction)_wrap_StandardPaths_GetDataDir, METH_O, NULL},
|
{ (char *)"StandardPaths_GetDataDir", (PyCFunction)_wrap_StandardPaths_GetDataDir, METH_O, NULL},
|
||||||
|
@@ -6034,6 +6034,16 @@ class StandardPaths(object):
|
|||||||
return _misc_.StandardPaths_Get(*args, **kwargs)
|
return _misc_.StandardPaths_Get(*args, **kwargs)
|
||||||
|
|
||||||
Get = staticmethod(Get)
|
Get = staticmethod(Get)
|
||||||
|
def GetExecutablePath(*args, **kwargs):
|
||||||
|
"""
|
||||||
|
GetExecutablePath(self) -> String
|
||||||
|
|
||||||
|
Return the path (directory+filename) of the running executable or an
|
||||||
|
empty string if it couldn't be determined. The path is returned as an
|
||||||
|
absolute path whenever possible.
|
||||||
|
"""
|
||||||
|
return _misc_.StandardPaths_GetExecutablePath(*args, **kwargs)
|
||||||
|
|
||||||
def GetConfigDir(*args, **kwargs):
|
def GetConfigDir(*args, **kwargs):
|
||||||
"""
|
"""
|
||||||
GetConfigDir(self) -> String
|
GetConfigDir(self) -> String
|
||||||
|
@@ -36904,6 +36904,40 @@ fail:
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
SWIGINTERN PyObject *_wrap_StandardPaths_GetExecutablePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
||||||
|
PyObject *resultobj = 0;
|
||||||
|
wxStandardPaths *arg1 = (wxStandardPaths *) 0 ;
|
||||||
|
wxString result;
|
||||||
|
void *argp1 = 0 ;
|
||||||
|
int res1 = 0 ;
|
||||||
|
PyObject *swig_obj[1] ;
|
||||||
|
|
||||||
|
if (!args) SWIG_fail;
|
||||||
|
swig_obj[0] = args;
|
||||||
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxStandardPaths, 0 | 0 );
|
||||||
|
if (!SWIG_IsOK(res1)) {
|
||||||
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StandardPaths_GetExecutablePath" "', expected argument " "1"" of type '" "wxStandardPaths const *""'");
|
||||||
|
}
|
||||||
|
arg1 = reinterpret_cast< wxStandardPaths * >(argp1);
|
||||||
|
{
|
||||||
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
||||||
|
result = ((wxStandardPaths const *)arg1)->GetExecutablePath();
|
||||||
|
wxPyEndAllowThreads(__tstate);
|
||||||
|
if (PyErr_Occurred()) SWIG_fail;
|
||||||
|
}
|
||||||
|
{
|
||||||
|
#if wxUSE_UNICODE
|
||||||
|
resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
|
||||||
|
#else
|
||||||
|
resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
return resultobj;
|
||||||
|
fail:
|
||||||
|
return NULL;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
SWIGINTERN PyObject *_wrap_StandardPaths_GetConfigDir(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
SWIGINTERN PyObject *_wrap_StandardPaths_GetConfigDir(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
||||||
PyObject *resultobj = 0;
|
PyObject *resultobj = 0;
|
||||||
wxStandardPaths *arg1 = (wxStandardPaths *) 0 ;
|
wxStandardPaths *arg1 = (wxStandardPaths *) 0 ;
|
||||||
@@ -40094,6 +40128,7 @@ static PyMethodDef SwigMethods[] = {
|
|||||||
{ (char *)"Display_swigregister", Display_swigregister, METH_VARARGS, NULL},
|
{ (char *)"Display_swigregister", Display_swigregister, METH_VARARGS, NULL},
|
||||||
{ (char *)"Display_swiginit", Display_swiginit, METH_VARARGS, NULL},
|
{ (char *)"Display_swiginit", Display_swiginit, METH_VARARGS, NULL},
|
||||||
{ (char *)"StandardPaths_Get", (PyCFunction)_wrap_StandardPaths_Get, METH_NOARGS, NULL},
|
{ (char *)"StandardPaths_Get", (PyCFunction)_wrap_StandardPaths_Get, METH_NOARGS, NULL},
|
||||||
|
{ (char *)"StandardPaths_GetExecutablePath", (PyCFunction)_wrap_StandardPaths_GetExecutablePath, METH_O, NULL},
|
||||||
{ (char *)"StandardPaths_GetConfigDir", (PyCFunction)_wrap_StandardPaths_GetConfigDir, METH_O, NULL},
|
{ (char *)"StandardPaths_GetConfigDir", (PyCFunction)_wrap_StandardPaths_GetConfigDir, METH_O, NULL},
|
||||||
{ (char *)"StandardPaths_GetUserConfigDir", (PyCFunction)_wrap_StandardPaths_GetUserConfigDir, METH_O, NULL},
|
{ (char *)"StandardPaths_GetUserConfigDir", (PyCFunction)_wrap_StandardPaths_GetUserConfigDir, METH_O, NULL},
|
||||||
{ (char *)"StandardPaths_GetDataDir", (PyCFunction)_wrap_StandardPaths_GetDataDir, METH_O, NULL},
|
{ (char *)"StandardPaths_GetDataDir", (PyCFunction)_wrap_StandardPaths_GetDataDir, METH_O, NULL},
|
||||||
|
@@ -6034,6 +6034,16 @@ class StandardPaths(object):
|
|||||||
return _misc_.StandardPaths_Get(*args, **kwargs)
|
return _misc_.StandardPaths_Get(*args, **kwargs)
|
||||||
|
|
||||||
Get = staticmethod(Get)
|
Get = staticmethod(Get)
|
||||||
|
def GetExecutablePath(*args, **kwargs):
|
||||||
|
"""
|
||||||
|
GetExecutablePath(self) -> String
|
||||||
|
|
||||||
|
Return the path (directory+filename) of the running executable or an
|
||||||
|
empty string if it couldn't be determined. The path is returned as an
|
||||||
|
absolute path whenever possible.
|
||||||
|
"""
|
||||||
|
return _misc_.StandardPaths_GetExecutablePath(*args, **kwargs)
|
||||||
|
|
||||||
def GetConfigDir(*args, **kwargs):
|
def GetConfigDir(*args, **kwargs):
|
||||||
"""
|
"""
|
||||||
GetConfigDir(self) -> String
|
GetConfigDir(self) -> String
|
||||||
|
@@ -36904,6 +36904,40 @@ fail:
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
SWIGINTERN PyObject *_wrap_StandardPaths_GetExecutablePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
||||||
|
PyObject *resultobj = 0;
|
||||||
|
wxStandardPaths *arg1 = (wxStandardPaths *) 0 ;
|
||||||
|
wxString result;
|
||||||
|
void *argp1 = 0 ;
|
||||||
|
int res1 = 0 ;
|
||||||
|
PyObject *swig_obj[1] ;
|
||||||
|
|
||||||
|
if (!args) SWIG_fail;
|
||||||
|
swig_obj[0] = args;
|
||||||
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxStandardPaths, 0 | 0 );
|
||||||
|
if (!SWIG_IsOK(res1)) {
|
||||||
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StandardPaths_GetExecutablePath" "', expected argument " "1"" of type '" "wxStandardPaths const *""'");
|
||||||
|
}
|
||||||
|
arg1 = reinterpret_cast< wxStandardPaths * >(argp1);
|
||||||
|
{
|
||||||
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
||||||
|
result = ((wxStandardPaths const *)arg1)->GetExecutablePath();
|
||||||
|
wxPyEndAllowThreads(__tstate);
|
||||||
|
if (PyErr_Occurred()) SWIG_fail;
|
||||||
|
}
|
||||||
|
{
|
||||||
|
#if wxUSE_UNICODE
|
||||||
|
resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
|
||||||
|
#else
|
||||||
|
resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
return resultobj;
|
||||||
|
fail:
|
||||||
|
return NULL;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
SWIGINTERN PyObject *_wrap_StandardPaths_GetConfigDir(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
SWIGINTERN PyObject *_wrap_StandardPaths_GetConfigDir(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
||||||
PyObject *resultobj = 0;
|
PyObject *resultobj = 0;
|
||||||
wxStandardPaths *arg1 = (wxStandardPaths *) 0 ;
|
wxStandardPaths *arg1 = (wxStandardPaths *) 0 ;
|
||||||
@@ -40094,6 +40128,7 @@ static PyMethodDef SwigMethods[] = {
|
|||||||
{ (char *)"Display_swigregister", Display_swigregister, METH_VARARGS, NULL},
|
{ (char *)"Display_swigregister", Display_swigregister, METH_VARARGS, NULL},
|
||||||
{ (char *)"Display_swiginit", Display_swiginit, METH_VARARGS, NULL},
|
{ (char *)"Display_swiginit", Display_swiginit, METH_VARARGS, NULL},
|
||||||
{ (char *)"StandardPaths_Get", (PyCFunction)_wrap_StandardPaths_Get, METH_NOARGS, NULL},
|
{ (char *)"StandardPaths_Get", (PyCFunction)_wrap_StandardPaths_Get, METH_NOARGS, NULL},
|
||||||
|
{ (char *)"StandardPaths_GetExecutablePath", (PyCFunction)_wrap_StandardPaths_GetExecutablePath, METH_O, NULL},
|
||||||
{ (char *)"StandardPaths_GetConfigDir", (PyCFunction)_wrap_StandardPaths_GetConfigDir, METH_O, NULL},
|
{ (char *)"StandardPaths_GetConfigDir", (PyCFunction)_wrap_StandardPaths_GetConfigDir, METH_O, NULL},
|
||||||
{ (char *)"StandardPaths_GetUserConfigDir", (PyCFunction)_wrap_StandardPaths_GetUserConfigDir, METH_O, NULL},
|
{ (char *)"StandardPaths_GetUserConfigDir", (PyCFunction)_wrap_StandardPaths_GetUserConfigDir, METH_O, NULL},
|
||||||
{ (char *)"StandardPaths_GetDataDir", (PyCFunction)_wrap_StandardPaths_GetDataDir, METH_O, NULL},
|
{ (char *)"StandardPaths_GetDataDir", (PyCFunction)_wrap_StandardPaths_GetDataDir, METH_O, NULL},
|
||||||
|
Reference in New Issue
Block a user