Advertisement
Guest User

Untitled

a guest
Jul 16th, 2019
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. import os, sys
  2. import subprocess
  3.  
  4.  
  5. def installModules(modules):
  6. for module in modules:
  7. print("Installing module {}...".format(module))
  8.  
  9. subprocess.call([sys.executable, "-m", "pip", "install", "--user", module])
  10.  
  11. def process():
  12. modulesToInstall = [ "wget", "zipfile2" ]
  13. installModules(modulesToInstall)
  14.  
  15. process()
  16.  
  17. import wget
  18.  
  19. def main():
  20. wget.download("http://192.168.2.234/test/configure.py")
  21.  
  22. if __name__ == "__main__":
  23. main()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement