import subprocess import sys def run_commands(): # Run get_vid.py with the provided subcommands if len(sys.argv) > 1: vid_command = ['python', 'get_vid.py'] + sys.argv[1:] vid_output = subprocess.run(vid_command, capture_output=True, text=True) print(vid_output.stdout) # Run get_lic.py without any subcommands lic_command = ['python', 'get_lic.py'] lic_output = subprocess.run(lic_command, capture_output=True, text=True) print(lic_output.stdout) if __name__ == '__main__': run_commands()