1
0
mirror of https://github.com/samba-team/samba.git synced 2025-08-04 08:22:08 +03:00

s4-param: Added bin_dir(),sbin_dir() methods to get compiled in dirs

This commit is contained in:
Amitay Isaacs
2011-12-12 14:18:21 +11:00
parent a648563cb7
commit 7f50890cd6

View File

@ -464,6 +464,16 @@ static PyObject *py_modules_dir(PyObject *self)
return PyString_FromString(dyn_MODULESDIR);
}
static PyObject *py_bin_dir(PyObject *self)
{
return PyString_FromString(dyn_BINDIR);
}
static PyObject *py_sbin_dir(PyObject *self)
{
return PyString_FromString(dyn_SBINDIR);
}
static PyMethodDef pyparam_methods[] = {
{ "default_path", (PyCFunction)py_default_path, METH_NOARGS,
"Returns the default smb.conf path." },
@ -471,6 +481,10 @@ static PyMethodDef pyparam_methods[] = {
"Returns the compiled in location of provision tempates." },
{ "modules_dir", (PyCFunction)py_modules_dir, METH_NOARGS,
"Returns the compiled in location of modules." },
{ "bin_dir", (PyCFunction)py_bin_dir, METH_NOARGS,
"Returns the compiled in BINDIR." },
{ "sbin_dir", (PyCFunction)py_sbin_dir, METH_NOARGS,
"Returns the compiled in SBINDIR." },
{ NULL }
};