Skip to content

Instantly share code, notes, and snippets.

@cwebber314
Last active August 4, 2020 20:47
Show Gist options
  • Save cwebber314/68739d8cf23df0b96251c8f2b2ea23bb to your computer and use it in GitHub Desktop.
Save cwebber314/68739d8cf23df0b96251c8f2b2ea23bb to your computer and use it in GitHub Desktop.
"""
With Python 2.7 and PSSE v34.7
"""
import os
import sys
sys_paths = [
r'C:\Program Files (x86)\PTI\PSSE34\PSSPY27'
]
env_paths = [
r'C:\PROGRA~2\PTI\PSSE34\PSSBIN',
r'C:\PROGRA~2\PTI\PSSE34\PSSLIB',
]
for path in sys_paths:
sys.path.append(path)
for path in env_paths:
os.environ['PATH'] = os.environ['PATH'] + ';' + path
import psse34
import psspy
ierr = psspy.psseinit()
psspy.case(r'C:\Program Files (x86)\PTI\PSSE34\EXAMPLE\savnw.sav')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment