Advertisement
j311yf1sh

TUJAutoUpdater

Jun 21st, 2012
720
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 1.37 KB | None | 0 0
  1. from time import time
  2. import urllib.request
  3. import zipfile
  4.  
  5. '''
  6. This is a modification of "The undermine journal" auto updater as created originally by Reverb on the consortium
  7. forums as the original download for the drop box has dissappeared this will be posted on pastebin and kept
  8. on an external HDD.
  9.  
  10. This version is modified by j311yf1sh on the consortium forums.
  11.  
  12. USAGE:
  13.  
  14. Replace url with your undermine journal URL (http://i.imgur.com/NfYlC.png), right click and copy url, then paste in between the double quotes
  15.  
  16. Change the location of filename to a more suitable one for you. everyone will be a different file structure.
  17.  
  18. Change the destination path to your world of wacraft addons folder, it may be different for everyone.
  19.  
  20. Please refer to http://stormspire.net/official-forum-undermine-journal/3024-guide-maintaining-tuj-realm-edition-information-automagically.html
  21. for further information.
  22. '''
  23.  
  24. #replace this.
  25. url = "Paste url here"
  26.  
  27. #replace this.
  28. filename = "C:\\Users\\Home\\Documents\\TUJ\\TheUndermineJournal.zip"
  29.  
  30. #replace this.
  31. destinationPath = "C:\\Program Files (x86)\\World of Warcraft\\Interface\\AddOns"
  32.  
  33. print("Downloading...")
  34. urllib.request.urlretrieve(url,filename)
  35.  
  36. print("Unzipping...")
  37. sourceZip = zipfile.ZipFile(filename, 'r')
  38. for name in sourceZip.namelist():
  39.     sourceZip.extract(name, destinationPath)
  40. sourceZip.close()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement