Closed JuroOravec closed 1 month ago
I wonder if it's possible to add a test for this? Of course ok if not practical.
Ok I tried to write a test that's similar to the issue we've seen, so that there would be a component A whose template uses component B, whereas component B uses relative paths. But when I checked by undoing the changes of this MR, then the tests still passed. So the added tests doesn't really test against this specific issue. But I've included it anyway as it could catch some edge cases in the future.
And thanks for the review!
Merged and released in 0.65: https://pypi.org/project/django-components/0.65/
Fix the issue identified in https://github.com/EmilStenstrom/django-components/discussions/425 by using
sys.modules
to obtain the path to the file where a component class was created.