Page MenuHome

bpy module: print full path to module before import
AcceptedPublic

Authored by Ankit Meel (ankitm) on Feb 14 2022, 7:54 PM.

Details

Summary

In non-portable builds, a bpy.so exists in build
directory and one in system python site-packages.

Also symlinks can interfere with installation location (D14111).

This code prints which one is being imported, for debugging
help like in https://developer.blender.org/T86579#1307158

Diff Detail

Event Timeline

While the patch seems fine I don't have a good way to check if it's useful, when debugging these kinds of issues I normally use strace.

If this helps, I don't see a problem with it though.

Note that this kind of check could be applied to tests/python/bl_bundled_modules.py too.

This revision is now accepted and ready to land.Apr 5 2022, 8:22 AM