Maybe the edited file wasn’t saved or instead of overwriting the existing exporting.py file it was accidentally saved as a new file, e.g. exporting.py.txt.
Maybe add a few print statements to verify that the code is being executed.
I’ll repeat myself, but it’s just easier to temporarily use the add-on that I mentioned to my reply in PM a while ago. It pretty much does the same thing.
I don’t have more ideas but if you do what I said in my previous reply, the output will look like this.
I forgot about it, but if you still want to run Anki via Python, you’ll also need to download mpv and add the full path to mpv.exe to the PATH environment variable, otherwise once you’ll try to review a card with sound you’ll receive a message, “Sound and video on cards will not function until mpv or mplayer is installed”.
There’s no much difference. It just takes a bit more time to install everything and run Anki from Python and the black Command Prompt window will be always opened.
The issue will be fixed someday, maybe in the next version.