Skip to content

Instantly share code, notes, and snippets.

@jtrain
Created July 31, 2011 05:16
Show Gist options
  • Save jtrain/1116432 to your computer and use it in GitHub Desktop.
Save jtrain/1116432 to your computer and use it in GitHub Desktop.
External Interpreter Environment setup for PSSE
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