Created
July 31, 2011 05:16
-
-
Save jtrain/1116432 to your computer and use it in GitHub Desktop.
External Interpreter Environment setup for PSSE
This file contains 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
import os,sys | |
sys.path.append(r"C:\Program Files\PTI\PSSE32\PSSBIN") | |
os.environ['PATH'] = (r"C:\Program Files\PTI\PSSE32\PSSBIN;" | |
+ os.environ['PATH']) | |
os.chdir(r"C:\work_dir") | |
import psspy | |
import redirect | |
_i=psspy.getdefaultint() | |
_f=psspy.getdefaultreal() | |
_s=psspy.getdefaultchar() | |
redirect.psse2py() | |
import pssdb | |
psspy.psseinit(80000) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment