I have an application written in Python which runs on RPi. I want it to auto update itself by downloading the latest code into the directory where it is installed...which may vary from user to user. It will also need to run a SQL script on occasion. What is the best approach for this? How do I ensure the code downloads to the right directory?
GitHub tutorials I have seen are focused on updating the central repository. I want the reverse to occur. Is git the best tool or would SVN or a simple HTTP download from my site be better?
As per the comments I eventually managed to get this to work using urllib.urlretrieve to download a zip and then use zipfile to unzip and overwrite.
How to auto update code via python