"curScore.path" Disappeared in Musescore 4
This attribute has disappeared. I don't know how to obtain the path for the current score. Does anyone know how to obtain it?
This attribute has disappeared. I don't know how to obtain the path for the current score. Does anyone know how to obtain it?
Do you still have an unanswered question? Please log in first to post your question.
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