Can't run python macro from embendded script

Hello. I’ve encountered such a proplem on Win machine. I have a button with on click event, I’ve attached a picture.


So if I put the script “rom_dialogs.py” in Libre…\Scripts\python dir everything works well, but if I embedding this scripts to my .ods file (and delete form …python dir) it does’t run. Help me please, how I should run procedures from embedded scripts?

rebind the »Mouse button pressed« event, to the new path inside the document

Yes, I should write document location insted of user, thanks