25 lines
658 B
Python
25 lines
658 B
Python
|
import subprocess
|
||
|
import sys
|
||
|
|
||
|
def run_script(script_name):
|
||
|
"""Run a script and print its output."""
|
||
|
try:
|
||
|
result = subprocess.run([sys.executable, script_name], capture_output=True, text=True)
|
||
|
print(f"Running {script_name}...\n")
|
||
|
print(result.stdout)
|
||
|
if result.stderr:
|
||
|
print(f"Error in {script_name}:\n{result.stderr}")
|
||
|
except Exception as e:
|
||
|
print(f"Failed to run {script_name}: {e}")
|
||
|
|
||
|
if __name__ == "__main__":
|
||
|
scripts = [
|
||
|
'm_group.py',
|
||
|
'm_user.py',
|
||
|
'm_subscription.py',
|
||
|
'm_transactions.py'
|
||
|
]
|
||
|
|
||
|
for script in scripts:
|
||
|
run_script(script)
|