WebThingsIO / gateway

WebThings Gateway - a self-hosted web application for monitoring and controlling a building over the web
http://webthings.io/gateway
Mozilla Public License 2.0
2.62k stars 339 forks source link

Fix pagekite #3170

Closed ogra1 closed 1 month ago

ogra1 commented 1 month ago

pagekite hardcodes the /usr/bin/python interpreter which is non-existing on most modern distros (it should be pointing to python2 (unsupported by upstream) or python3 nowadays).

On UbuntuCore specfically the interpreter path should even be provided by the env command since it might actually be shipped inside the snap package itself.

This PR changes the interpreter line of pagekite.py to follow the modern python rules so it can be used in a snap and on UbuntuCore seamlessly.