| |
|
| |
|
| |
|
| | import os
|
| | import sys
|
| | import subprocess
|
| |
|
| |
|
| |
|
| | SUITE_SUBFOLDER_NAME = "TAS_1.5"
|
| |
|
| |
|
| | try:
|
| |
|
| | shortcut_dir = os.path.dirname(os.path.abspath(__file__))
|
| |
|
| |
|
| | suite_folder_path = os.path.join(shortcut_dir, SUITE_SUBFOLDER_NAME)
|
| |
|
| |
|
| | run_suite_script_path = os.path.join(suite_folder_path, "run_suite.py")
|
| |
|
| |
|
| | python_exe = sys.executable
|
| |
|
| | except Exception as e:
|
| | print(f"Error determining script paths: {e}")
|
| | input("Press Enter to exit.")
|
| | sys.exit(1)
|
| |
|
| |
|
| | if not os.path.isdir(suite_folder_path):
|
| | print(f"Error: Suite subfolder not found at expected location:")
|
| | print(f" '{suite_folder_path}'")
|
| | print(f" Ensure the '{SUITE_SUBFOLDER_NAME}' folder exists in the same directory as this shortcut.")
|
| | input("Press Enter to exit.")
|
| | sys.exit(1)
|
| |
|
| | if not os.path.isfile(run_suite_script_path):
|
| | print(f"Error: Main script 'run_suite.py' not found inside the subfolder:")
|
| | print(f" '{run_suite_script_path}'")
|
| | input("Press Enter to exit.")
|
| | sys.exit(1)
|
| |
|
| |
|
| |
|
| |
|
| |
|
| | try:
|
| |
|
| |
|
| |
|
| | process = subprocess.run(
|
| | [python_exe, run_suite_script_path],
|
| | check=True,
|
| | cwd=shortcut_dir
|
| | )
|
| | print("-" * 30)
|
| | print("Suite finished.")
|
| |
|
| | except FileNotFoundError:
|
| | print(f"\nError: Python executable not found: {python_exe}")
|
| | except subprocess.CalledProcessError as e:
|
| | print(f"\nError: The main suite script failed with exit code {e.returncode}.")
|
| | except Exception as e:
|
| | print(f"\nAn unexpected error occurred while launching the suite: {e}")
|
| |
|
| |
|
| | |