20 lines
563 B
Python
Raw Normal View History

import json
import subprocess
2019-12-30 00:33:25 +01:00
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.")