"you should avoid using modpath_from_file()"
So this deprecation warning has been annoying me because of how vague and bad its message is, so I dig into it and here seems to be the reason for it:
Which isn't in the warning message.
So I'm wondering: what should be do? Fix it? Remove it and replace it by ... what? Is it really a problem when we are using it? But at least let's clear this warning.
Full code: