kijk_DL/tasks.py

18 lines
562 B
Python
Raw Permalink Normal View History

2025-10-12 18:46:12 +02:00
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()