About Script Location

You can just leave your script in your home directory (/home/osmc) you’ll be able to run scripts from there.

This sounds similar to this thread

If you explain what you are trying to do perhaps we can offer suggestions.