diff options
| author | Julian Andres Klode <jak@debian.org> | 2009-03-08 18:58:17 +0100 |
|---|---|---|
| committer | Julian Andres Klode <jak@debian.org> | 2009-03-08 18:58:17 +0100 |
| commit | 162844cc03d669fd1aaf4a6cf9424597bb299264 (patch) | |
| tree | a0887d64151344f48e221d6d41ed922abbc0bc36 /python/configuration.cc | |
| parent | 645c80f504f98332fb8eceb955c13a54e38e5956 (diff) | |
| parent | 2342bc7c05da5589f166496fe1112b249598648f (diff) | |
| download | python-apt-162844cc03d669fd1aaf4a6cf9424597bb299264.tar.gz | |
* Merge with mvo
Diffstat (limited to 'python/configuration.cc')
| -rw-r--r-- | python/configuration.cc | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/python/configuration.cc b/python/configuration.cc index f52c3c97..21f70bc1 100644 --- a/python/configuration.cc +++ b/python/configuration.cc @@ -330,6 +330,24 @@ PyObject *LoadConfigISC(PyObject *Self,PyObject *Args) Py_INCREF(Py_None); return HandleErrors(Py_None); } +char *doc_LoadConfigDir = "LoadConfigDir(Configuration,DirName) -> None"; +PyObject *LoadConfigDir(PyObject *Self,PyObject *Args) +{ + char *Name = 0; + if (PyArg_ParseTuple(Args,"Os",&Self,&Name) == 0) + return 0; + if (Configuration_Check(Self)== 0) + { + PyErr_SetString(PyExc_TypeError,"argument 1: expected Configuration."); + return 0; + } + + if (ReadConfigDir(GetSelf(Self),Name,false) == false) + return HandleErrors(); + + Py_INCREF(Py_None); + return HandleErrors(Py_None); +} /*}}}*/ // ParseCommandLine - Wrapper for the command line interface /*{{{*/ |
