Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Hi Andre,

I see that you already worked out the answer. Just in case anyone else was having the same problem. Here is how to import if you are on a 64bit machine.

import os,sys
PSSE_PATH = r'c:\Program Files (x86)\PTI\PSSE33\PSSBIN'
sys.path.append(PSSE_PATH)
os.environ['PATH'] += ';' + PSSE_PATH

import redirect
redirect.psse2py()
import psspy
import excelpy

PSSE is installed in the "Program Files (x86)" folder not the "Program Files" folder for 64bit windows systems.

There are other ways to set up your PSSE path too. Check out this answer by chip for importing psspy