The Python imp module has been deprecated since 3.4, and it has finally been removed in Python 3.12. Since I run 3.12, the polyhavenassets module crashed on load. Kept fallback to imp in case users still have a very, very old Python runtime.
You can also replace imp with importlib directly, I don't expect anybody to be realistically be using a Python without importlib.
The Python imp module has been deprecated since 3.4, and it has finally been removed in Python 3.12. Since I run 3.12, the polyhavenassets module crashed on load. Kept fallback to imp in case users still have a very, very old Python runtime.
You can also replace imp with importlib directly, I don't expect anybody to be realistically be using a Python without importlib.