Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import os, sys
- import subprocess
- def installModules(modules):
- for module in modules:
- print("Installing module {}...".format(module))
- subprocess.call([sys.executable, "-m", "pip", "install", "--user", module])
- def process():
- modulesToInstall = [ "wget", "zipfile2" ]
- installModules(modulesToInstall)
- process()
- import wget
- def main():
- wget.download("http://192.168.2.234/test/configure.py")
- if __name__ == "__main__":
- main()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement