#!/usr/bin/env python3 import mhi.pscad, os # Launch PSCAD pscad = mhi.pscad.launch() # Locate the tutorial directory tutorial_dir = os.path.join(pscad.examples_folder, "tutorial") # Load the tutorial workspace pscad.load("Tutorial.pswx", folder=tutorial_dir) # Run all the simulation sets in the workspace pscad.run_all_simulation_sets() # Exit PSCAD pscad.quit()