Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

To initialize PSSe 35.x.y + python 39, the following would work:

import sys, os

#psse_PATH=(r"""C:\\Program Files\\PTI\\PSSE35\\35.3\\PSSBIN""")
pssepy_PATH=(r"""C:\Program Files\PTI\PSSE35\35.3\PSSPY39""")
#sys.path.append(psse_PATH)
#envpath = ';'+psse_PATH
#os.environ['PATH'] += envpath
sys.path.append(pssepy_PATH)
#envpathpy = ';'+pssepy_PATH
#os.environ['PATH'] += envpathpy

import psspy
psspy.psseinit()

or for single v.35 installation:

import sys, os
import psse35
import psspy
psspy.psseinit()