Command line sensor and external script

Hi, I installed hass.io on my synology docker. I have written a python script I’d like to run as a command line sensor. I just don’t know how to find the right path to print to the script. Do I put it in the hassio folder?
Thanks

Something like this?

shell_command:
  runmyscript: python /config/yourscript.py

Thanks. I will try it