Last active
August 4, 2020 20:47
-
-
Save cwebber314/68739d8cf23df0b96251c8f2b2ea23bb to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
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