Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Update Python Files
#3
I think the best solution is to have an independent update script, which is run by your program.
Then the update script needs to know the installation Path, the online-version and installed-version.
Then you compare them, if installed-version is lower than online-version, download the new files.
I think the best is to use an archive. Then you unpack it and after everything has been extracted,
the independent update script could use return code, to signal the main program not to start.

You'll find some examples if you look for "auto update script python".
QT is not required, you could do it with vanilla Python (no additional dependencies required)
Almost dead, but too lazy to die: https://sourceserver.info
All humans together. We don't need politicians!
Reply


Messages In This Thread
Update Python Files - by Harshil - Aug-28-2020, 08:32 AM
RE: Update Python Files - by Gribouillis - Aug-28-2020, 08:50 AM
RE: Update Python Files - by DeaD_EyE - Aug-28-2020, 09:09 AM
RE: Update Python Files - by Harshil - Aug-28-2020, 10:52 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Is it possible to update a CSS file from Python bigAL_python 4 2,347 Apr-20-2022, 01:38 PM
Last Post: bigAL_python
Question Python + Google Sheet | Best way to update specific cells in a single Update()? Vokofe 1 2,731 Dec-16-2020, 05:26 AM
Last Post: Vokofe
  XML update using python sathiyarajmca 1 2,134 Jun-18-2019, 06:11 PM
Last Post: Larz60+
  Python to update XML SubElement emersonivo 3 3,294 Aug-02-2018, 07:49 AM
Last Post: Larz60+
  Running a python tool transforming xml files into epub files silfer 7 5,482 May-10-2018, 03:49 PM
Last Post: snippsat

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020