Python-i18n: allow None as a gettext path (searches default)

This commit is contained in:
Adriaan de Groot 2017-08-16 16:45:34 +02:00
parent 74be2fd098
commit 78b3c8ed32
2 changed files with 3 additions and 3 deletions

View file

@ -240,12 +240,12 @@ gettext_languages()
return pyList;
}
std::string
bp::object
gettext_path()
{
// TODO: distinguish between -d runs and normal runs
// TODO: can we detect DESTDIR-installs?
return std::string();
return bp::object(); // None
}

View file

@ -61,7 +61,7 @@ std::string check_target_env_output( const boost::python::list& args,
std::string obscure( const std::string& string );
std::string gettext_path();
boost::python::object gettext_path();
boost::python::list gettext_languages();