"curScore.path" Disappeared in Musescore 4

• May 24, 2024 - 17:39

This attribute has disappeared. I don't know how to obtain the path for the current score. Does anyone know how to obtain it?


Comments

A slightly incorrect way could be using
Qt.resolvedUrl(“../Scores”)

With a “.” Parameter, the plug-in directory is given. I “assume” scores are held in the adjacent directory. A more correct way is to use “.” And look if the slashes are forward slash or back slash, and adjust accordingly.

Assumptions used of course.

I don’t know a “correct” way.

See #8 on this page for use of replace function in conjunction with the call to clean up the file path.

https://musescore.org/en/node/337468

Do you still have an unanswered question? Please log in first to post your question.