pyconvert_add_rule
must be executed before using pyimport
in __init__()
#500
Labels
bug
Something isn't working
Affects: PythonCall
Description:
It took me ages to figure out why the following did not manage to add a conversion rule, despite it following the documentation here and here
It seems swapping the order solves the issue
i.e. the conversion rule must be added before
pyimport
is called. I guess it is too late to add the rules once the python executable has started? Perhaps this should be clarified in the documentation?The text was updated successfully, but these errors were encountered: