Hi again, I'm now working on a twitter client and I'm wondering how people update their programs when it needs it, for example when I commit a change. Any help on the subject would be most appreciated thanks
Member #361407
Recommended Answers
Jump to Post— mn_kthompson 3One thing you could try doing is to give the user two different programs. Prog1 is the auto updater and Prog2 is the twitter client. The user will always run prog1. Prog1 will check for a version string in prog2 and check if an updated version of prog2 is available. …
Jump to Post— lllllIllIlllI 178Why dont you just have it that it reads the first line of project1 and that can have a simple string telling you what version it is. Then if there is a newer one replace
Have this as the first line:
"12"
f = open('proj1.py') lineOne …
Jump to Post— mn_kthompson 3Exactly. You could use the urllib2 library to connect to a website and pull down a file with the latest version number of your software. Then compare that to the version number that you have as the first line of your program. If different, then use urllib2 to pull down …
All 12 Replies
mn_kthompson 3 Junior Poster
Member #361407
lllllIllIlllI 178 Veteran Poster
mn_kthompson 3 Junior Poster
Member #361407
Stefano Mtangoo 455 Senior Poster
Member #361407
Stefano Mtangoo 455 Senior Poster
Member #361407
Stefano Mtangoo 455 Senior Poster
Member #361407
Stefano Mtangoo 455 Senior Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.