2020-03-05 23:57:59 +01:00

20 lines
563 B
Python

import json
import subprocess
from AbstractModule import AbstractModule
class CmdToolsModule(AbstractModule):
def run(self):
print("Try to install basic Command-line tools")
with open("modules/command-line tools/programs.json") as config_file:
programs_json = json.load(config_file)
programs_list = ""
for program in programs_json:
programs_list += " " + program
subprocess.run("sudo apt install" + programs_list, shell=True)
print("Script ran to completion.")