file-runner.py 175 B

123456789
  1. import subprocess
  2. import sys
  3. if len(sys.argv) > 1:
  4. file_path = sys.argv[1]
  5. subprocess.run([file_path])
  6. else:
  7. print("Use python runner.py <file>")
  8. sys.exit(1)