mirror of
https://github.com/parchlinux/calamares.git
synced 2025-06-29 18:35:37 -04:00
[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:
parent
fe61925f31
commit
517dbfab06
3 changed files with 8 additions and 8 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue