SHARE
TWEET

Untitled

a guest Jul 16th, 2019 54 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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()
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top