OmNom

Download MC mods easily (Read from file and search for)

Aug 2nd, 2015
227
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.55 KB | None | 0 0
  1. import subprocess
  2.  
  3. e = False
  4. i = 1
  5. mods = []
  6.  
  7. fileDir = "null"
  8. #fileDir = input("Where is the mods file? ")
  9. #If you want to be able to choose the mods file location, then remove the hashtag in the above line.
  10.  
  11. if fileDir == "null":
  12.     fileDir = "modslist.txt"
  13.  
  14. while True:
  15.     with open(fileDir, "r") as ins:
  16.         for line in ins:
  17.             mods.append(line)
  18.     break
  19.  
  20. for mod in mods:
  21.     subprocess.call([r'D:\Program Files (x86)\Mozilla Firefox\firefox.exe', '-new-tab', 'google.com/#q=' + mod.replace(' ', '+') + '+Mod+Minecraft'])
Add Comment
Please, Sign In to add comment