[libcalamares] The script namespace is actually a dict

Use dict methods, in particular d.get(k, v), to retrieve
the pretty_name() function (or None if it isn't there).
Using getattr() on a dict will not return values in the
dict.
This commit is contained in:
Adriaan de Groot 2017-12-01 16:42:56 -05:00
parent fe61925f31
commit 517dbfab06
3 changed files with 8 additions and 8 deletions

View file

@ -233,7 +233,7 @@ Helper::~Helper()
{}
boost::python::object
boost::python::dict
Helper::createCleanNamespace()
{
// To make sure we run each script with a clean namespace, we only fetch the